From 02053964498498464576c93fa9e9c6fbb6876cd1 Mon Sep 17 00:00:00 2001 From: TechPrimers Date: Sun, 10 Jun 2018 18:26:57 +0530 Subject: [PATCH] add new branch for aws deploy testing --- Jenkinsfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6226802..81ced3b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,17 +24,9 @@ pipeline { stage ('Deployment Stage') { steps { - withCredentials([usernamePassword(credentialsId: 's3-bucket', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { - sh 'export AWS_ACCESS_KEY_ID=$USERNAME' - sh 'export AWS_SECRET_ACCESS_KEY=$PASSWORD' - sh 'export AWS_DEFAULT_REGION=ap-south-1' - } - sh 'cd ~' - sh 'pwd' - sh 'ls -lrt' - sh 'whoami' + sh '/usr/local/bin/aws s3 cp target/jenkins-example*.jar s3://techprimers-s3/' sh '/usr/local/bin/aws s3 ls' - sh '/usr/local/bin/aws configure list' + sh '/usr/local/bin/aws s3 ls s3://techprimers-s3/' } } }