Permalink
Browse files

adding a Jenkins build file

  • Loading branch information...
bsanders committed Dec 1, 2017
1 parent 8ac6a85 commit 834e661f34ec0cb6210ba1fa789567d9f5580277
Showing with 19 additions and 0 deletions.
  1. +19 −0 .Jenkinsfile
View
@@ -0,0 +1,19 @@
pipeline {
options {
buildDiscarder(logRotator(numToKeepStr:'20'))
}
agent none
stages {
stage('build') {
steps {
node(label: 'vagrant_vbox_builder') {
sh "hostname"
sh "whoami"
sh "mkdir -p ${env.WORKSPACE}/stacki-iso-builder-${env.BUILD_NUMBER}"
sh "tar -xvzf /export/stacki-iso-builder.tar.gz -C ${env.WORKSPACE}/stacki-iso-builder-${env.BUILD_NUMBER} --strip-components 1"
sh "cd ${env.WORKSPACE}/stacki-iso-builder-${env.BUILD_NUMBER} && ./do-build.sh ${env.BUILD_OS} ${env.BUILD_BRANCH}"
}
}
}
}
}

0 comments on commit 834e661

Please sign in to comment.