Skip to content

Commit

Permalink
Adding Tier / Internet2 AWS credentials and S3 bucket names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Packard committed Sep 5, 2016
1 parent 178041f commit 09ecc83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ if (BRANCH_TEST=="shibboleth-production"){
sh 'rm -rf builds'
sh 'mkdir -p builds'

withCredentials([[$class: 'FileBinding', credentialsId: 'our-aws-config', variable: 'FILE']]) {
withCredentials([[$class: 'FileBinding', credentialsId: 'tier-aws-config', variable: 'FILE']]) {
ws {
sh 'mkdir -p ~/.aws'
sh 'cp $FILE ~/.aws/config'
}
}

withCredentials([[$class: 'FileBinding', credentialsId: 'our-aws-credentials', variable: 'FILE']]) {
withCredentials([[$class: 'FileBinding', credentialsId: 'tier-aws-credentials', variable: 'FILE']]) {
ws {
sh 'mkdir -p ~/.aws'
sh 'cp $FILE ~/.aws/credentials'
Expand Down Expand Up @@ -52,7 +52,7 @@ if (BRANCH_TEST=="shibboleth-production"){

stage 'Sync appliances to S3 bucket'

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

slackSend color: 'good', message: "BUILD SUCCESS: Shibboleth Appliance build success. ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL} |Open>)"

Expand All @@ -77,14 +77,14 @@ if (BRANCH_TEST=="shibboleth-production"){
sh 'rm -rf builds'
sh 'mkdir -p builds'

withCredentials([[$class: 'FileBinding', credentialsId: 'our-aws-config', variable: 'FILE']]) {
withCredentials([[$class: 'FileBinding', credentialsId: 'tier-aws-config', variable: 'FILE']]) {
ws {
sh 'mkdir -p ~/.aws'
sh 'cp $FILE ~/.aws/config'
}
}

withCredentials([[$class: 'FileBinding', credentialsId: 'our-aws-credentials', variable: 'FILE']]) {
withCredentials([[$class: 'FileBinding', credentialsId: 'tier-aws-credentials', variable: 'FILE']]) {
ws {
sh 'mkdir -p ~/.aws'
sh 'cp $FILE ~/.aws/credentials'
Expand Down Expand Up @@ -113,7 +113,7 @@ if (BRANCH_TEST=="shibboleth-production"){

stage 'Sync appliances to S3 bucket'

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

slackSend color: 'good', message: "BUILD SUCCESS: Comanage Appliance build success. ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL} |Open>)"

Expand Down
2 changes: 1 addition & 1 deletion shibboleth-appliance.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `region`}}",
"s3_bucket_name": "internet2-ami-import-us-west-1",
"s3_bucket_name": "internet2-levvel-ami-import-us-west-1",
"tags": {
"Description": "packer amazon-import-shibboleth-appliance {{user `timestamper`}}"
}
Expand Down

0 comments on commit 09ecc83

Please sign in to comment.