Update Jenkinsfile

This commit is contained in:
saisrinisrinivas 2023-07-04 13:36:23 +05:30 committed by GitHub
parent 33ca179331
commit d8678a6383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
Jenkinsfile vendored
View file

@ -1,15 +1,10 @@
pipeline {
agent any
stages {
stage('Download and Execute Jenkinsfile') {
stage('Download and Execute Jenkinsfile') {
steps {
withAWS(region: 'ap-south-1', credentials: 'iamuser1') {
script {
// Download the Jenkinsfile from S3
withAWS(region: 'ap-south-1', credentials: 'iamuser1') {
sh 'aws s3 cp s3://myjenkinsbucket001/Jenkinsfile /tmp/Jenkinsfile'
}
}
script {
def downloadedJenkinsfile = readFile('/tmp/Jenkinsfile')
@ -20,7 +15,6 @@ pipeline {
}
}
}
}
}
}