Permalink
Browse files

Modify .Jenkinsfile to clone iso-builder

  • Loading branch information...
anooprajendra committed Mar 20, 2018
1 parent 9ad5789 commit d7a353b829a3f79f92967611528429518d3fa7fa
Showing with 5 additions and 11 deletions.
  1. +5 −11 .Jenkinsfile
View
@@ -3,24 +3,18 @@ pipeline {
buildDiscarder(logRotator(numToKeepStr:'20'))
}
agent none
environment {
STACKIENGBOTTDCREDS = credentials('cbaa2c3c-151e-4ba2-92ed-8f088762467b')
}
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 "mkdir -p ${env.WORKSPACE}/"
sh "git clone https://${env.STACKIENGBOTTDCREDS}@github.td.teradata.com/software-manufacturing/stacki-iso-builder.git ${env.WORKSPACE}/stacki-iso-builder-${env.BUILD_NUMBER}"
sh "cd ${env.WORKSPACE}/stacki-iso-builder-${env.BUILD_NUMBER} && ./do-build.sh ${env.BUILD_OS} ${env.BUILD_BRANCH}"
}
}
}
}
post {
failure {
node(label: 'vagrant_vbox_builder') {
sh "cd ${env.WORKSPACE}/stacki-iso-builder-${env.BUILD_NUMBER} && vagrant destroy -f"
}
}
}
}

0 comments on commit d7a353b

Please sign in to comment.