added changes in jenkinsfile11

This commit is contained in:
sri 2024-03-28 18:10:14 +05:30
parent e21341a847
commit feb7160527

View file

@ -1,23 +1,23 @@
pipeline { pipeline {
agent{ label 'MAVEN' | 'JDK_17' } agent { label 'MAVEN' }
options { timeout(time: 30, unit: 'MINUTES') } options {
triggers{ timeout(time: 30, unit: 'MINUTES')
pollSCM ('* * * * *')
} }
environment triggers {
{ pollSCM('* * * * *')
mypassword = helloadmin
} }
stages{ stages {
stage('git'){ stage('git') {
steps { 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') { stage('build') {
steps { steps {
sh 'mvn clean package' sh 'mvn clean package'
} }
} }
} }
}
}