diff --git a/Jenkinsfile b/Jenkinsfile index 3873db0..7b60f19 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,13 @@ pipeline { TRIVY_SEVERITY = 'HIGH,CRITICAL' } + // Trigger ko YAHAN declare karna zaroori hai. Agar sirf job config.xml me ho + // aur Jenkinsfile me na ho, to DeclarativeJobPropertyTrackerAction NPE deta hai. + // Khaali spec = polling band, sirf webhook (notifyCommit) se chalega. + triggers { + pollSCM('') + } + options { timestamps() buildDiscarder(logRotator(numToKeepStr: '20'))