Skip to content

Commit

Permalink
Enhance pipeline cleanup and setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Packard committed Aug 31, 2016
1 parent 0337cb0 commit f2fef47
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ if (BRANCH_TEST=="shibboleth-production"){
currentBuild.result = "SUCCESS"

try {
stage 'Cleanup, Setup Path'
stage 'Cleanup & Setup'
sh 'rm -rf output-*'
sh 'rm -rf "/Users/levvel/VirtualBox VMs/"'
sh 'source /etc/profile'
sh 'rm /builds'
sh 'mkdir /builds'

stage 'Checkout'

Expand All @@ -35,6 +36,10 @@ if (BRANCH_TEST=="shibboleth-production"){

sh '/usr/local/bin/packer build shibboleth-appliance.json'

# stage 'Sync appliances to S3 bucket'

# sh 'aws s3 sync /builds s3://internet2-appliance-us-west-1'

}

catch (err) {
Expand All @@ -50,10 +55,11 @@ if (BRANCH_TEST=="shibboleth-production"){
currentBuild.result = "SUCCESS"

try {
stage 'Cleanup, Setup Path'
stage 'Cleanup & Setup '
sh 'rm -rf output-*'
sh 'rm -rf "/Users/levvel/VirtualBox VMs"'
sh 'source /etc/profile'
sh 'rm /builds'
sh 'mkdir /builds'

stage 'Checkout'

Expand All @@ -71,10 +77,14 @@ if (BRANCH_TEST=="shibboleth-production"){

sh '/usr/local/bin/packer validate comange-appliance.json'

stage 'Build Appliance - Shibboleth'
stage 'Build Appliance - Comanage'

sh '/usr/local/bin/packer build comanage-appliance.json'

# stage 'Sync appliances to S3 bucket'

# sh 'aws s3 sync /builds s3://internet2-appliance-us-west-1'

}

catch (err) {
Expand Down

0 comments on commit f2fef47

Please sign in to comment.