mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
2e8d2a002c
commit
33ca179331
1 changed files with 6 additions and 5 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -2,7 +2,7 @@ pipeline {
|
|||
agent any
|
||||
|
||||
stages {
|
||||
stage('Download and Execute Jenkinsfile') {
|
||||
stage('Download and Execute Jenkinsfile') {
|
||||
steps {
|
||||
withAWS(region: 'ap-south-1', credentials: 'iamuser1') {
|
||||
script {
|
||||
|
@ -10,7 +10,8 @@ pipeline {
|
|||
sh 'aws s3 cp s3://myjenkinsbucket001/Jenkinsfile /tmp/Jenkinsfile'
|
||||
}
|
||||
}
|
||||
script {
|
||||
|
||||
script {
|
||||
def downloadedJenkinsfile = readFile('/tmp/Jenkinsfile')
|
||||
node {
|
||||
deleteDir() // Clean workspace before executing downloaded Jenkinsfile
|
||||
|
@ -18,8 +19,8 @@ pipeline {
|
|||
load 'Jenkinsfile'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue