fix: triggers ko Jenkinsfile me declare karo (DeclarativeJobPropertyTracker NPE)
This commit is contained in:
parent
e394dd9762
commit
2a45cba4ee
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -18,6 +18,13 @@ pipeline {
|
|||||||
TRIVY_SEVERITY = 'HIGH,CRITICAL'
|
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 {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
buildDiscarder(logRotator(numToKeepStr: '20'))
|
buildDiscarder(logRotator(numToKeepStr: '20'))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user