added triggers

This commit is contained in:
Venkatesh 2022-10-06 11:12:12 +05:30
parent 07a2b55ea9
commit d171f80a87

View file

@ -1,6 +1,9 @@
pipeline { pipeline {
agent { label 'JDK-11' } agent { label 'JDK-11' }
stages { stages {
triggers {
pollSCM('* * * * *')
}
parameters { parameters {
string(name: 'MAVEN_GOAL', defaultValue: 'mvn package', description: 'enter maven goal') string(name: 'MAVEN_GOAL', defaultValue: 'mvn package', description: 'enter maven goal')
choice(name: 'BRANCH', choices: ['master', 'main', 'three'], description: 'select one') choice(name: 'BRANCH', choices: ['master', 'main', 'three'], description: 'select one')