Add webhook trigger into Jenkinsfile

This commit is contained in:
retropikzel 2026-07-02 12:33:23 +03:00
parent 6db4653a97
commit 56e731b4b8
1 changed files with 13 additions and 0 deletions

13
Jenkinsfile vendored
View File

@ -7,6 +7,19 @@ pipeline {
}
}
triggers {
GenericTrigger(
genericVariables: [[key: 'ref', value: '$.ref']],
causeString: 'Triggered on $ref',
printContributedVariables: true,
printPostContent: true,
silentResponse: false,
shouldNotFlatten: false,
regexpFilterText: '$ref',
regexpFilterExpression: 'refs/heads/' + BRANCH_NAME
)
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))