Add webhook trigger

This commit is contained in:
retropikzel 2026-06-27 14:51:45 +03:00
parent f8a7458b99
commit d48809552a
1 changed files with 19 additions and 0 deletions

19
Jenkinsfile vendored
View File

@ -7,6 +7,25 @@ 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'))