Update Jenkinsfile and setup_workspace.sh
This commit is contained in:
parent
14c6c819f9
commit
3a7ec4511d
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -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"
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user