diff --git a/Jenkinsfile b/Jenkinsfile index 63a46ce..dfbcb5c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'))