mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
added changes in jenkinsfile11
This commit is contained in:
parent
e21341a847
commit
feb7160527
1 changed files with 12 additions and 12 deletions
24
jenkinsfile
24
jenkinsfile
|
@ -1,23 +1,23 @@
|
|||
pipeline {
|
||||
agent{ label 'MAVEN' | 'JDK_17' }
|
||||
options { timeout(time: 30, unit: 'MINUTES') }
|
||||
triggers{
|
||||
pollSCM ('* * * * *')
|
||||
agent { label 'MAVEN' }
|
||||
options {
|
||||
timeout(time: 30, unit: 'MINUTES')
|
||||
}
|
||||
environment
|
||||
{
|
||||
mypassword = helloadmin
|
||||
triggers {
|
||||
pollSCM('* * * * *')
|
||||
}
|
||||
stages{
|
||||
stage('git'){
|
||||
stages {
|
||||
stage('git') {
|
||||
steps {
|
||||
git url: 'https://github.com/srikanthkuna1618/spring-petclinic-march.git', branch: 'dev'
|
||||
git url: 'https://github.com/srikanthkuna1618/spring-petclinic-march.git',
|
||||
branch: 'dev'
|
||||
}
|
||||
}
|
||||
stage('build') {
|
||||
steps {
|
||||
sh 'mvn clean package'
|
||||
sh 'mvn clean package'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue