添加webhook触发器

This commit is contained in:
2024-09-10 11:32:02 +08:00
parent 125b6cb3c1
commit c03cbc53bf

20
Jenkinsfile vendored
View File

@@ -21,6 +21,26 @@ pipeline{
triggers {
pollSCM 'H/3 * * * * '
GenericTrigger(
genericVariables: [
[key: 'ref', value: '$.ref']
],
causeString: 'Triggered on $ref',
token: JOB_BASE_NAME,
tokenCredentialId: '',
printContributedVariables: true,
printPostContent: true,
silentResponse: false,
shouldNotFlatten: false,
regexpFilterText: '$ref',
regexpFilterExpression: 'refs/heads/' + BRANCH_NAME
)
}
stages{