summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2017-02-10 19:20:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-10 19:20:03 +0000
commit74c661e91f768aabf3d99f9b6baed260f58bb471 (patch)
tree6cebbab7b069133774153e534f5b537d481ad5bd
parentf262b532623812aa4002e44bfcce7d392a8f156b (diff)
parentcb0475995e5c55304aa0d3b19fcc4426b7ced49f (diff)
Merge "Add parameters and change trigger to change-merged"
-rw-r--r--jjb/releng/testapi-automate.yml29
1 files changed, 26 insertions, 3 deletions
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