mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
33ca179331
commit
d8678a6383
1 changed files with 14 additions and 20 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -1,15 +1,10 @@
|
|||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
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')
|
||||
|
@ -21,6 +16,5 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue