Commit 29ee2cb7 authored by Harald Sitter's avatar Harald Sitter 🦄

move archiving within workspace (I think)

parent 042e608e
......@@ -4,11 +4,17 @@ env.PWD_BIND = '/workspace'
cleanNode('master') {
ws('/tmp/kde-os-autoinst') {
stage('clone') {
git 'https://github.com/apachelogger/kde-os-autoinst'
}
stage('run') {
sh './contain.rb /workspace/bootstrap.rb'
try {
stage('clone') {
git 'https://github.com/apachelogger/kde-os-autoinst'
}
stage('run') {
sh './contain.rb /workspace/bootstrap.rb'
}
} finally {
sh 'tar -cf wok.tar wok'
archiveArtifacts 'wok.tar'
sh './contain.rb chown -R jenkins .'
}
}
}
......@@ -16,15 +22,16 @@ cleanNode('master') {
def cleanNode(label = null, body) {
node(label) {
try {
// Supremely bugged causing excessive slowdown in jenkins. not sure why.
// <org.jenkinsci.plugins.livescreenshot.LiveScreenshotBuildWrapper plugin="livescreenshot@1.4.5">
// <fullscreenFilename>screenshot.png</fullscreenFilename>
// <thumbnailFilename>screenshot-thumb.png</thumbnailFilename>
// </org.jenkinsci.plugins.livescreenshot.LiveScreenshotBuildWrapper>
wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
wrap([$class: 'TimestamperBuildWrapper']) {
body()
}
}
} finally {
sh 'tar -cf wok.tar wok'
archiveArtifacts 'wok.tar'
sh './contain.rb chown -R jenkins .'
// step([$class: 'WsCleanup', cleanWhenFailure: true])
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment