1
0

Update Jenkinsfile and setup_workspace.sh

This commit is contained in:
Andrea Cavalli 2020-10-04 18:07:07 +02:00
parent beba5b7deb
commit 3d6bd59f55
2 changed files with 5 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -26,7 +26,7 @@ pipeline {
dir 'jenkins/docker'
filename 'dockerfile'
additionalBuildArgs '--build-arg version=1.0.0'
args "-v \"${env.WORKSPACE}/tdlight-java/src/main:/output\" -v \"$HOME:/var/maven\" -v \"${env.WORKSPACE}:/work\""
args "--user 1000:1000 -v \"${env.WORKSPACE}/tdlight-java/src/main:/output\" -v \"$HOME:/var/maven\" -v \"$HOME/.ccache:/work/ccache\""
reuseNode false
}
}

View File

@ -20,6 +20,10 @@ source ./jenkins/scripts/setup_variables.sh
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
echo "Linux"
echo "CCACHE statistics:"
ccache -s
echo "CCACHE dir content: $CCACHE_DIR"
ls -alch "$CCACHE_DIR"
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "OSX"
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then