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
b857705df1
commit
b8103bd78b
1 changed files with 3 additions and 4 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -7,13 +7,13 @@ pipeline {
|
||||||
withAWS(region: 'ap-south-1', credentials: 'iamuser1') {
|
withAWS(region: 'ap-south-1', credentials: 'iamuser1') {
|
||||||
script {
|
script {
|
||||||
// Download the shell script from S3
|
// Download the shell script from S3
|
||||||
sh 'aws s3 cp s3://myjenkinsbucket001/checkout/checkout.sh /tmp/script.sh'
|
sh 'aws s3 cp s3://myjenkinsbucket001/checkout/checkout.sh $WORKSPACE/script.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
script {
|
script {
|
||||||
// Make the downloaded script executable
|
// Make the downloaded script executable
|
||||||
sh 'chmod +x /tmp/script.sh'
|
sh 'chmod +x $WORKSPACE/script.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,9 +21,8 @@ pipeline {
|
||||||
stage('Execute Downloaded Shell Script') {
|
stage('Execute Downloaded Shell Script') {
|
||||||
steps {
|
steps {
|
||||||
// Execute the downloaded shell script
|
// Execute the downloaded shell script
|
||||||
sh '/tmp/script.sh'
|
sh '$WORKSPACE/script.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue