1
0

Update Jenkinsfile and setup_workspace.sh

This commit is contained in:
Andrea Cavalli 2020-10-03 15:24:29 +02:00
parent 14c6c819f9
commit 3a7ec4511d
2 changed files with 14 additions and 1 deletions

14
Jenkinsfile vendored
View File

@ -21,12 +21,26 @@ pipeline {
}
stages {
stage("Compile C++") {
agent {
docker {
image 'dockcross/linux-x64'
args '-v $JAVA_HOME:/java -v $HOME:/var/maven'
reuseNode true
}
}
steps {
sh "./jenkins/scripts/compile.sh"
}
}
stage("Build & Deploy SNAPSHOT") {
agent {
docker {
image 'maven:3.6.3'
args '-v $HOME:/var/maven'
reuseNode true
}
}
steps {
sh "mvn -s $MVN_SET -B deploy"
}

View File

@ -15,7 +15,6 @@ source ./jenkins/scripts/setup_variables.sh
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
echo "Linux"
sudo apt install cmake -y
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "OSX"
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then