diff options
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/functest/functest-virtual.yaml | 2 | ||||
-rw-r--r-- | jjb/global/releng-macros.yaml | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/jjb/functest/functest-virtual.yaml b/jjb/functest/functest-virtual.yaml index 0be027485..baadf12e6 100644 --- a/jjb/functest/functest-virtual.yaml +++ b/jjb/functest/functest-virtual.yaml @@ -338,7 +338,7 @@ project-type: multijob <<: *functest-gateparameters triggers: - - gerrit-trigger-patchset-created: + - gerrit-trigger-patchset-approved: project: 'functest' branch: '{branch}' files: '**' diff --git a/jjb/global/releng-macros.yaml b/jjb/global/releng-macros.yaml index fe24ed56d..6c37bbbd9 100644 --- a/jjb/global/releng-macros.yaml +++ b/jjb/global/releng-macros.yaml @@ -200,6 +200,32 @@ notbuilt: false - trigger: + name: gerrit-trigger-patchset-approved + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - comment-added-event: + approval-category: 'CRVW' + approval-value: 2 + - comment-added-contains-event: + comment-contains-value: 'gate' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + file-paths: + - compare-type: 'ANT' + pattern: '{files}' + skip-vote: + successful: false + failed: false + unstable: false + notbuilt: false + +- trigger: name: gerrit-trigger-change-merged triggers: - gerrit: |