Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Jenkinsfile 656 Bytes
Newer Older
Harald Sitter's avatar
importy  
Harald Sitter committed
1 2 3 4 5 6 7 8 9
env.DIST = 'xenial'
env.TYPE = 'user'
env.PWD_BIND = '/workspace'

cleanNode('master') {
  stage('clone') {
    git 'https://github.com/apachelogger/kde-os-autoinst'
  }
  stage('run') {
Harald Sitter's avatar
Harald Sitter committed
10
    sh './contain.rb /workspace/bootstrap.rb'
Harald Sitter's avatar
importy  
Harald Sitter committed
11 12 13 14 15 16 17 18 19 20 21 22
  }
}

def cleanNode(label = null, body) {
  node(label) {
    try {
      wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
        wrap([$class: 'TimestamperBuildWrapper']) {
          body()
        }
      }
    } finally {
23 24
      sh 'tar -cf wok.tar wok'
      archiveArtifacts 'wok.tar'
Harald Sitter's avatar
Harald Sitter committed
25
      sh './contain.rb chown -R jenkins .'
26
      // step([$class: 'WsCleanup', cleanWhenFailure: true])
Harald Sitter's avatar
importy  
Harald Sitter committed
27 28 29
    }
  }
}