summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorJulien <zhang.jun3g@zte.com.cn>2016-12-12 22:41:38 +0800
committerJulien <zhang.jun3g@zte.com.cn>2016-12-15 00:43:58 +0800
commitfbccf94bda7852f86ea5bb417c8271b6ffb2ff85 (patch)
tree9a909e3a301db89cb9f0c319adad38643213fc94 /jjb
parenteb455611516ee52bb5b5ecb9383334d237862967 (diff)
Add support to dedicated file monitor docker build
Add a new type of template for projects whose docker image only relevant with Dockerfile or file in the same path and any other code changes will not affect the docker img. Add daisy into new type of template. Change-Id: Ib2c9f0aab74e8b226a1b5c6cb4cf9c6a213b4186 Signed-off-by: Julien-zte <zhang.jun3g@zte.com.cn>
Diffstat (limited to 'jjb')
-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/**'
+