Advertisement
Korsar13

Untitled

Jun 9th, 2022
2,017
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.82 KB | None | 0 0
  1.         stage('Build CI') {
  2.             when {
  3.                 not { triggeredBy 'UserIdCause' }
  4.                 expression { quick_autobuild }
  5.             }
  6.             steps {
  7.                 cleanWs( deleteDirs: true, disableDeferredWipeout: true, patterns: [ [pattern: 'tmp.' + env.JOB_BASE_NAME, type: 'INCLUDE'] ] )
  8.                 dir( 'qbs' ) {
  9.                     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"
  10.                     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"
  11.                 }
  12.             }
  13.         }
  14.         stage('Build') {
  15.             when {
  16.                 anyOf {
  17.                     triggeredBy 'UserIdCause'
  18.                     expression { !quick_autobuild }
  19.                 }
  20.             }
  21.             steps {
  22.                 cleanWs( deleteDirs: true, disableDeferredWipeout: true, patterns: [ [pattern: 'tmp.' + env.JOB_BASE_NAME, type: 'INCLUDE'] ] )
  23.                 dir( 'qbs' ) {
  24.                     sh label:'resolve', script:"qbs resolve qbs.architectures:x86_64,arm64 config:${env.JOB_BASE_NAME} -d ../tmp.build --log-time"
  25.                     // иногда qbs падает с Segmentation Fault после "Build done. Everything is OK"
  26.                     sh label:'build', script:"qbs build qbs.architectures:x86_64,arm64 config:${env.JOB_BASE_NAME} -d ../tmp.build --log-time"
  27.                     retry( 2 ) {
  28.                         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"
  29.                     }
  30.                 }
  31.             }
  32.         }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement