Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage('Build CI') {
- when {
- not { triggeredBy 'UserIdCause' }
- expression { quick_autobuild }
- }
- steps {
- cleanWs( deleteDirs: true, disableDeferredWipeout: true, patterns: [ [pattern: 'tmp.' + env.JOB_BASE_NAME, type: 'INCLUDE'] ] )
- dir( 'qbs' ) {
- sh label:'resolve', script:"qbs resolve qbs.architectures:x86_64,arm64 config:${env.JOB_BASE_NAME} -d ../tmp.build project.ci_build:true --log-time"
- sh label:'build', script:"qbs build qbs.architectures:x86_64,arm64 config:${env.JOB_BASE_NAME} -d ../tmp.build project.ci_build:true --log-time"
- }
- }
- }
- stage('Build') {
- when {
- anyOf {
- triggeredBy 'UserIdCause'
- expression { !quick_autobuild }
- }
- }
- steps {
- cleanWs( deleteDirs: true, disableDeferredWipeout: true, patterns: [ [pattern: 'tmp.' + env.JOB_BASE_NAME, type: 'INCLUDE'] ] )
- dir( 'qbs' ) {
- sh label:'resolve', script:"qbs resolve qbs.architectures:x86_64,arm64 config:${env.JOB_BASE_NAME} -d ../tmp.build --log-time"
- // иногда qbs падает с Segmentation Fault после "Build done. Everything is OK"
- sh label:'build', script:"qbs build qbs.architectures:x86_64,arm64 config:${env.JOB_BASE_NAME} -d ../tmp.build --log-time"
- retry( 2 ) {
- sh label:'install', script:"qbs install --no-build qbs.architectures:x86_64,arm64 --install-root ../tmp.${env.JOB_BASE_NAME} config:${env.JOB_BASE_NAME} -d ../tmp.build --log-time"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement