add new branch for aws deploy testing
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -25,12 +25,14 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
|
|
||||||
withCredentials([usernamePassword(credentialsId: 's3-bucket', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
withCredentials([usernamePassword(credentialsId: 's3-bucket', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
||||||
sh 'export AWS_ACCESS_KEY_ID=USERNAME'
|
sh 'export AWS_ACCESS_KEY_ID=$USERNAME'
|
||||||
sh 'export AWS_SECRET_ACCESS_KEY=$PASSWORD'
|
sh 'export AWS_SECRET_ACCESS_KEY=$PASSWORD'
|
||||||
sh 'export AWS_DEFAULT_REGION=ap-south-1'
|
sh 'export AWS_DEFAULT_REGION=ap-south-1'
|
||||||
}
|
}
|
||||||
sh 'ls -lrt'
|
sh 'ls -lrt'
|
||||||
|
sh 'whoami'
|
||||||
sh '/usr/local/bin/aws s3 ls'
|
sh '/usr/local/bin/aws s3 ls'
|
||||||
|
sh '/usr/local/bin/aws configure list'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user