summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2016-12-16 09:39:24 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-16 09:39:24 +0000
commita9bfd613ced91676b71abbf06f09f44699775927 (patch)
treebd22ef0d01d1be8aa38cf5c7eb24d2bd679ca861
parent67f11688d3fae5bda97502d793198cfca2dbee13 (diff)
parentfbccf94bda7852f86ea5bb417c8271b6ffb2ff85 (diff)
Merge "Add support to dedicated file monitor docker build"
-rw-r--r--jjb/releng/opnfv-docker.yml42
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: &parameters
- 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/**'
+