From fb2c1b41d1e669164bae391aabf2d34391f9543f Mon Sep 17 00:00:00 2001 From: saisrinisrinivas <102722606+saisrinisrinivas@users.noreply.github.com> Date: Tue, 4 Jul 2023 12:32:56 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c88139809..968841e42 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,16 @@ pipeline { agent any stages { + stage('S3Download') { + steps { + withAWS(region:'ap-south-1',credentials:'iamuser1')\ + { + s3Download(file: 'Jenkinsfile', bucket: 'myjenkinsbucket001', path: 'https://myjenkinsbucket001.s3.ap-south-1.amazonaws.com/Jenkinsfile') + } + + } + + } stage('GitCheckout'){ steps { git 'https://github.com/saisrinisrinivas/spring-petclinic.git'