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
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') {
|
||||
script {
|
||||
// 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 {
|
||||
// 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') {
|
||||
steps {
|
||||
// Execute the downloaded shell script
|
||||
sh '/tmp/script.sh'
|
||||
sh '$WORKSPACE/script.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue