mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
添加webhook触发器
This commit is contained in:
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@@ -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{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user