mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
Create Jenkinsfile2
Added jenkins file
This commit is contained in:
parent
13b62e205b
commit
ea9b91a246
1 changed files with 23 additions and 0 deletions
23
Jenkinsfile2
Normal file
23
Jenkinsfile2
Normal file
|
@ -0,0 +1,23 @@
|
|||
pipeline {
|
||||
agent{label 'node'}
|
||||
|
||||
triggers{
|
||||
pollSCM('* * * * *')
|
||||
}
|
||||
|
||||
stages{
|
||||
stage('vcs') {
|
||||
steps{
|
||||
git url: 'https://github.com/shaiksohail11/spring-petclinic.git',
|
||||
branch: 'main'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps{
|
||||
sh 'docker image build -t shaik1128/spring-petclinic:3.0 .',
|
||||
sh 'docker push shaik1128/spring-petclinic:3.0'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue