summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-11-24 13:17:40 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-11-24 13:17:40 +0100
commitce7ab72c78031b0f7eddec9291152b59c5a534f5 (patch)
tree0fe577adfdbcb0f4b3e2d4118f57b6d0f1695e25 /jjb
parentc8765055df82461e9210706d04f4a8d09a440d68 (diff)
Gate Functest tests when +2
It will update to Workflow as soon as possible. Change-Id: Id12afa6836b4cc0129666480eb92c36132c32823 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/functest/functest-virtual.yaml2
-rw-r--r--jjb/global/releng-macros.yaml26
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: