Skip to content

Commit d5c9acc

Browse files
Update Jenkinsfile
1 parent 17caed6 commit d5c9acc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Jenkinsfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ pipeline {
5353
stage('Deploy to AWS Lambda') {
5454
steps {
5555
withCredentials([
56-
string(credentialsId: 'serverless-key', variable: 'SERVERLESS_ACCESS_KEY'),
57-
usernamePassword(credentialsId: 'aws-credentials', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY')
58-
]) {
56+
string(credentialsId: 'SERVERLESS_ACCESS_KEY', variable: 'SERVERLESS_ACCESS_KEY'),
57+
string(credentialsId: 'AWS_ACCESS_KEY_ID', variable: 'AWS_ACCESS_KEY_ID'),
58+
string(credentialsId: 'AWS_SECRET_ACCESS_KEY', variable: 'AWS_SECRET_ACCESS_KEY')
59+
])
60+
{
5961
sh '''
6062
echo Deploying with Serverless CLI...
6163
serverless deploy --stage $STAGE --verbose

0 commit comments

Comments
 (0)