simplify and fix Jenkinsfile
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@@ -14,6 +14,7 @@ pipeline {
|
||||
sh "cd build/linux && make install -j${JOBS_COUNT}"
|
||||
sh "cd build/linux && make deploy"
|
||||
archiveArtifacts 'release/Linux/*/*.deb'
|
||||
sh 'rm -rf ./build ./bin ./release ./builds'
|
||||
}
|
||||
}
|
||||
stage('Build Windows') {
|
||||
@@ -24,6 +25,7 @@ pipeline {
|
||||
sh "cd build/windows && make install -j${JOBS_COUNT}"
|
||||
sh "cd build/windows && make deploy"
|
||||
archiveArtifacts 'release/Windows/*/*.zip'
|
||||
sh 'rm -rf ./build ./bin ./release ./builds'
|
||||
}
|
||||
}
|
||||
stage('Build MacOS') {
|
||||
@@ -33,8 +35,8 @@ pipeline {
|
||||
sh "cd build/osx && rm -rf ./* && cmake -DCMAKE_TOOLCHAIN_FILE=/soft/toolchain-Darwin.cmake -DBUILD_NUMBER=${env.BUILD_NUMBER} -DLIB=0 ../../src"
|
||||
sh "cd build/osx && make install -j${JOBS_COUNT}"
|
||||
sh "cd build/osx && make deploy"
|
||||
//sh "cd release/Darwin/* && for d in `ls`; do zip -9 \$d.zip \$d ; done"
|
||||
archiveArtifacts 'release/Darwin/*/*.zip'
|
||||
sh 'rm -rf ./build ./bin ./release ./builds'
|
||||
}
|
||||
}
|
||||
stage('Build Android') {
|
||||
@@ -56,8 +58,8 @@ pipeline {
|
||||
sh "cd build/android && make deploy"
|
||||
archiveArtifacts 'release/Android/*.apk'
|
||||
archiveArtifacts 'release/Android/*.aab'
|
||||
sh 'rm -rf ./build ./bin ./release ./builds'
|
||||
}
|
||||
//sh 'cd build/osx && make -j${JOBS_COUNT}'
|
||||
}
|
||||
}
|
||||
/*stage('Build Android') {
|
||||
@@ -79,12 +81,4 @@ pipeline {
|
||||
}
|
||||
}*/
|
||||
}
|
||||
post {
|
||||
always {
|
||||
echo 'clean'
|
||||
//sh "cd build && rm -rf ./*"
|
||||
//sh "cd release && rm -rf ./*"
|
||||
//sh "cd bin && rm -rf ./*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user