summaryrefslogtreecommitdiffstats
path: root/jjb/global-macros.yaml
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2022-08-11 13:11:37 +0200
committerMauro Sardara <msardara@cisco.com>2022-08-11 13:15:06 +0200
commit1ef12fa4fc9435f9518b5278c5ab179522a4ae8d (patch)
tree0f0b148448cb16c50ba4a5e0634c83d77ef65365 /jjb/global-macros.yaml
parent2ac685f154ae75ac0377cec312cd65d57240abbc (diff)
feat(hicn.yaml): add functional tests jobs
The approach to trigger the functional test job is the same adopted for triggering the build after the checkstyle. A comment "build_successful" will be added in gerrit by the build job, and this comment will in turn trigger the functional test job. Change-Id: I140160dfdd6fe80fdbe64848b9dc2c7a2b75cac4 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'jjb/global-macros.yaml')
-rw-r--r--jjb/global-macros.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml
index 5043b868..4468b03b 100644
--- a/jjb/global-macros.yaml
+++ b/jjb/global-macros.yaml
@@ -280,6 +280,22 @@
#### TRIGGERS
# Keep 'trigger' entries ordered alphabetically, please.
- trigger:
+ name: gerrit-trigger-build
+ # Comes from hicn, some verify jobs wait for build to pass.
+ triggers:
+ - gerrit:
+ server-name: 'Primary'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'build_success'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{name}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+
+- trigger:
name: gerrit-trigger-checkstyle
# Comes from VPP, some verify jobs wait for checkstyle to pass.
# This macro is to be used for such verify jobs which are voting.