Add parameter "cancel-pending-builds-on-update" for trigger "gitlab"
When this boolean parameter is set to true, updating a merge request cancels any pending merge-request builds. Change-Id: Ic5ef400cf4cd088680b92bd10b88b79520795729
This commit is contained in:
parent
9cff4f295e
commit
03d99c56e8
@ -1410,6 +1410,8 @@ def gitlab(registry, xml_parent, data):
|
|||||||
(default true)
|
(default true)
|
||||||
:arg bool set-build-description: Set build description to build cause
|
:arg bool set-build-description: Set build description to build cause
|
||||||
(eg. Merge request or Git Push) (default true)
|
(eg. Merge request or Git Push) (default true)
|
||||||
|
:arg bool cancel-pending-builds-on-update: Cancel pending merge request
|
||||||
|
builds on update (default false)
|
||||||
:arg bool add-note-merge-request: Add note with build status on
|
:arg bool add-note-merge-request: Add note with build status on
|
||||||
merge requests (default true)
|
merge requests (default true)
|
||||||
:arg bool add-vote-merge-request: Vote added to note with build status
|
:arg bool add-vote-merge-request: Vote added to note with build status
|
||||||
@ -1521,6 +1523,7 @@ def gitlab(registry, xml_parent, data):
|
|||||||
("ci-skip", "ciSkip", True),
|
("ci-skip", "ciSkip", True),
|
||||||
("wip-skip", "skipWorkInProgressMergeRequest", True),
|
("wip-skip", "skipWorkInProgressMergeRequest", True),
|
||||||
("set-build-description", "setBuildDescription", True),
|
("set-build-description", "setBuildDescription", True),
|
||||||
|
("cancel-pending-builds-on-update", "cancelPendingBuildsOnUpdate", False),
|
||||||
("add-note-merge-request", "addNoteOnMergeRequest", True),
|
("add-note-merge-request", "addNoteOnMergeRequest", True),
|
||||||
("add-vote-merge-request", "addVoteOnMergeRequest", True),
|
("add-vote-merge-request", "addVoteOnMergeRequest", True),
|
||||||
("accept-merge-request-on-success", "acceptMergeRequestOnSuccess", False),
|
("accept-merge-request-on-success", "acceptMergeRequestOnSuccess", False),
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<ciSkip>true</ciSkip>
|
<ciSkip>true</ciSkip>
|
||||||
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
||||||
<setBuildDescription>true</setBuildDescription>
|
<setBuildDescription>true</setBuildDescription>
|
||||||
|
<cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>
|
||||||
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
||||||
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
||||||
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<ciSkip>true</ciSkip>
|
<ciSkip>true</ciSkip>
|
||||||
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
||||||
<setBuildDescription>true</setBuildDescription>
|
<setBuildDescription>true</setBuildDescription>
|
||||||
|
<cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>
|
||||||
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
||||||
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
||||||
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<ciSkip>true</ciSkip>
|
<ciSkip>true</ciSkip>
|
||||||
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
||||||
<setBuildDescription>true</setBuildDescription>
|
<setBuildDescription>true</setBuildDescription>
|
||||||
|
<cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>
|
||||||
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
||||||
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
||||||
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<ciSkip>false</ciSkip>
|
<ciSkip>false</ciSkip>
|
||||||
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
||||||
<setBuildDescription>false</setBuildDescription>
|
<setBuildDescription>false</setBuildDescription>
|
||||||
|
<cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>
|
||||||
<addNoteOnMergeRequest>false</addNoteOnMergeRequest>
|
<addNoteOnMergeRequest>false</addNoteOnMergeRequest>
|
||||||
<addVoteOnMergeRequest>false</addVoteOnMergeRequest>
|
<addVoteOnMergeRequest>false</addVoteOnMergeRequest>
|
||||||
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<ciSkip>true</ciSkip>
|
<ciSkip>true</ciSkip>
|
||||||
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
||||||
<setBuildDescription>true</setBuildDescription>
|
<setBuildDescription>true</setBuildDescription>
|
||||||
|
<cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>
|
||||||
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
||||||
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
||||||
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<ciSkip>false</ciSkip>
|
<ciSkip>false</ciSkip>
|
||||||
<skipWorkInProgressMergeRequest>false</skipWorkInProgressMergeRequest>
|
<skipWorkInProgressMergeRequest>false</skipWorkInProgressMergeRequest>
|
||||||
<setBuildDescription>false</setBuildDescription>
|
<setBuildDescription>false</setBuildDescription>
|
||||||
|
<cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>
|
||||||
<addNoteOnMergeRequest>false</addNoteOnMergeRequest>
|
<addNoteOnMergeRequest>false</addNoteOnMergeRequest>
|
||||||
<addVoteOnMergeRequest>false</addVoteOnMergeRequest>
|
<addVoteOnMergeRequest>false</addVoteOnMergeRequest>
|
||||||
<acceptMergeRequestOnSuccess>true</acceptMergeRequestOnSuccess>
|
<acceptMergeRequestOnSuccess>true</acceptMergeRequestOnSuccess>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<ciSkip>true</ciSkip>
|
<ciSkip>true</ciSkip>
|
||||||
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
||||||
<setBuildDescription>true</setBuildDescription>
|
<setBuildDescription>true</setBuildDescription>
|
||||||
|
<cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>
|
||||||
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
<addNoteOnMergeRequest>true</addNoteOnMergeRequest>
|
||||||
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
<addVoteOnMergeRequest>true</addVoteOnMergeRequest>
|
||||||
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
||||||
|
@ -6,6 +6,7 @@ triggers:
|
|||||||
trigger-closed-merge-request: true
|
trigger-closed-merge-request: true
|
||||||
ci-skip: true
|
ci-skip: true
|
||||||
set-build-description: true
|
set-build-description: true
|
||||||
|
cancel-pending-builds-on-update: false
|
||||||
add-note-merge-request: true
|
add-note-merge-request: true
|
||||||
add-vote-merge-request: true
|
add-vote-merge-request: true
|
||||||
add-ci-message: true
|
add-ci-message: true
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<ciSkip>false</ciSkip>
|
<ciSkip>false</ciSkip>
|
||||||
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
<skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
|
||||||
<setBuildDescription>false</setBuildDescription>
|
<setBuildDescription>false</setBuildDescription>
|
||||||
|
<cancelPendingBuildsOnUpdate>true</cancelPendingBuildsOnUpdate>
|
||||||
<addNoteOnMergeRequest>false</addNoteOnMergeRequest>
|
<addNoteOnMergeRequest>false</addNoteOnMergeRequest>
|
||||||
<addVoteOnMergeRequest>false</addVoteOnMergeRequest>
|
<addVoteOnMergeRequest>false</addVoteOnMergeRequest>
|
||||||
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
<acceptMergeRequestOnSuccess>false</acceptMergeRequestOnSuccess>
|
||||||
|
@ -5,6 +5,7 @@ triggers:
|
|||||||
trigger-open-merge-request-push: both
|
trigger-open-merge-request-push: both
|
||||||
ci-skip: false
|
ci-skip: false
|
||||||
set-build-description: false
|
set-build-description: false
|
||||||
|
cancel-pending-builds-on-update: true
|
||||||
add-note-merge-request: false
|
add-note-merge-request: false
|
||||||
add-vote-merge-request: false
|
add-vote-merge-request: false
|
||||||
add-ci-message: true
|
add-ci-message: true
|
||||||
|
Loading…
Reference in New Issue
Block a user