diff options
author | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-12-16 09:39:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-16 09:39:24 +0000 |
commit | a9bfd613ced91676b71abbf06f09f44699775927 (patch) | |
tree | bd22ef0d01d1be8aa38cf5c7eb24d2bd679ca861 | |
parent | 67f11688d3fae5bda97502d793198cfca2dbee13 (diff) | |
parent | fbccf94bda7852f86ea5bb417c8271b6ffb2ff85 (diff) |
Merge "Add support to dedicated file monitor docker build"
-rw-r--r-- | jjb/releng/opnfv-docker.yml | 42 |
1 files changed, 39 insertions, 3 deletions
diff --git a/jjb/releng/opnfv-docker.yml b/jjb/releng/opnfv-docker.yml index 7a4c9af51..4813a8877 100644 --- a/jjb/releng/opnfv-docker.yml +++ b/jjb/releng/opnfv-docker.yml @@ -45,6 +45,18 @@ - '{project}-docker-build-push-{stream}' +- project: + + name: opnfv-monitor-docker # projects which only monitor dedicated file or path + + project: + # projects with jobs for master + - 'daisy': + <<: *master + + jobs: + - '{project}-docker-build-push-monitor-{stream}' + ######################## # job templates ######################## @@ -53,7 +65,7 @@ disabled: '{obj:disabled}' - parameters: + parameters: ¶meters - project-parameter: project: '{project}' - 'opnfv-build-ubuntu-defaults' @@ -70,13 +82,13 @@ default: "" description: "Release version, e.g. 1.0, 2.0, 3.0" - scm: + scm: &scm - git-scm: credentials-id: '{ssh-credentials}' refspec: '' branch: '{branch}' - builders: + builders: &builders - shell: !include-raw-escape: ./opnfv-docker.sh @@ -84,3 +96,27 @@ - pollscm: cron: "*/30 * * * *" +- job-template: + name: '{project}-docker-build-push-monitor-{stream}' + disabled: '{obj:disabled}' + parameters: *parameters + scm: *scm + builders: *builders + + # trigger only matching the file name + triggers: + - gerrit: + 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: 'docker/**' + |