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
fb2c1b41d1
commit
b19d695508
1 changed files with 9 additions and 13 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -4,25 +4,21 @@ pipeline {
|
|||
stages {
|
||||
stage('S3Download') {
|
||||
steps {
|
||||
withAWS(region:'ap-south-1',credentials:'iamuser1')\
|
||||
withAWS(region:'ap-south-1',credentials:'iamuser1')
|
||||
{
|
||||
s3Download(file: 'Jenkinsfile', bucket: 'myjenkinsbucket001', path: 'https://myjenkinsbucket001.s3.ap-south-1.amazonaws.com/Jenkinsfile')
|
||||
// Download the S3 object
|
||||
sh 'aws s3 cp s3://myjenkinsbucket001/Jenkinsfile /tmp/bucketfile'
|
||||
|
||||
// Execute the downloaded script
|
||||
sh 'chmod +x /tmp/bucketfile'
|
||||
sh '/tmp/bucketfile
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
stage('GitCheckout'){
|
||||
steps {
|
||||
git 'https://github.com/saisrinisrinivas/spring-petclinic.git'
|
||||
}
|
||||
|
||||
}
|
||||
stage('Run'){
|
||||
steps {
|
||||
sh 'mvn package'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue