Jenkinsfile 562 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 23 24 25 26 27
  }
}

def cleanNode(label = null, body) {
  node(label) {
    deleteDir()
    try {
      wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
        wrap([$class: 'TimestamperBuildWrapper']) {
          body()
        }
      }
    } finally {
      step([$class: 'WsCleanup', cleanWhenFailure: true])
    }
  }
}