fix: triggers ko Jenkinsfile me declare karo (DeclarativeJobPropertyTracker NPE)

This commit is contained in:
devops 2026-09-16 13:03:16 +00:00
parent e394dd9762
commit 2a45cba4ee

7
Jenkinsfile vendored
View File

@ -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'))