From cb0475995e5c55304aa0d3b19fcc4426b7ced49f Mon Sep 17 00:00:00 2001 From: rohitsakala Date: Fri, 10 Feb 2017 21:33:30 +0530 Subject: Add parameters and change trigger to change-merged Trigger is changed to change-merged for testing and will be reverted to weekly once there is a successful build Change-Id: I99a7f49e3d05e4915f1a2dd225fcf4ffde312df3 Signed-off-by: rohitsakala --- jjb/releng/testapi-automate.yml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'jjb/releng') diff --git a/jjb/releng/testapi-automate.yml b/jjb/releng/testapi-automate.yml index 0b6c36e59..73b600ddf 100644 --- a/jjb/releng/testapi-automate.yml +++ b/jjb/releng/testapi-automate.yml @@ -15,15 +15,22 @@ - 'testapi-automate-{stream}' - 'testapi-automate-{phase}-{stream}' - 'testapi-verify-{stream}' + - 'testapi-mongodb-backup' project: 'releng' - job: name: 'testapi-mongodb-backup' - slave-label: 'testresults' - parameters: + - label: + name: SLAVE_LABEL + default: 'testresults' + description: 'Slave label on Jenkins' + - string: + name: GIT_BASE + default: https://gerrit.opnfv.org/gerrit/$PROJECT + description: 'Git URL to use on this Jenkins Slave' - project-parameter: project: '{project}' branch: '{branch}' @@ -31,8 +38,24 @@ scm: - git-scm + #triggers: + # - timed: '@weekly' triggers: - - timed: '@weekly' + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: 'remerge' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + file-paths: + - compare-type: 'ANT' + pattern: 'utils/test/testapi/**' builders: - mongodb-backup -- cgit 1.2.3-korg