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,17 +1,16 @@
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') {
@ -20,4 +19,5 @@ pipeline {
}
}
}
}