Skip to content

Commit

Permalink
missing bit
Browse files Browse the repository at this point in the history
  • Loading branch information
nad2000 committed Dec 4, 2019
1 parent fba9611 commit 8fc8e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pipeline {
stage('AWS Credential Grab') {
steps{
print "☯ Authenticating with AWS"
withCredentials([usernamePassword(credentialsId:(env.ENV == "test" ? "uoa-its-nonprod-access":"aws-user-sandbox"), passwordVariable: 'password', usernameVariable: 'username'), string(credentialsId:(env.ENV == "test" ? "its-nonprod-access-token":"aws-token-sandbox"), variable: 'token')]) {
withCredentials([usernamePassword(credentialsId:(env.ENV == "tst" ? "uoa-its-nonprod-access":"aws-user-sandbox"), passwordVariable: 'password', usernameVariable: 'username'), string(credentialsId:(env.ENV == "tst" ? "its-nonprod-access-token":"aws-token-sandbox"), variable: 'token')]) {
sh "python3 /home/jenkins/aws_saml_login.py --idp iam.auckland.ac.nz --user $USERNAME --password $PASSWORD --token $TOKEN --profile 'default'"
sh 'aws sts get-caller-identity --query Account --output text'
}
Expand Down

0 comments on commit 8fc8e36

Please sign in to comment.