summaryrefslogtreecommitdiffstats
path: root/jjb/auto/auto.yaml
diff options
context:
space:
mode:
authorMartin Klozik <martin.klozik@tieto.com>2018-07-30 10:41:13 +0200
committerMartin Klozik <martin.klozik@tieto.com>2018-07-31 07:56:14 +0200
commit09557ce607f6cc685476aeb6fe54e140217e54a2 (patch)
tree9e929d0d4ecc59af78f0a0e82cc72cdb04eff586 /jjb/auto/auto.yaml
parent31f9e45614f09ea6f206f8e531291b70c2d700ec (diff)
auto: verify and merge jobs
Initial configuration of Auto specific verify and merge jobs triggered by gerrit events. Change-Id: I2d0fc7af31b1ec01f9a59eae875eb2df193d4fcb Signed-off-by: Martin Klozik <martin.klozik@tieto.com>
Diffstat (limited to 'jjb/auto/auto.yaml')
-rw-r--r--jjb/auto/auto.yaml125
1 files changed, 103 insertions, 22 deletions
diff --git a/jjb/auto/auto.yaml b/jjb/auto/auto.yaml
index ee7208205..62f6ec29d 100644
--- a/jjb/auto/auto.yaml
+++ b/jjb/auto/auto.yaml
@@ -7,16 +7,15 @@
# -------------------------------
# BRANCH ANCHORS
# -------------------------------
- master: &master
- stream: master
- branch: '{stream}'
- gs-pathname: ''
- disabled: false
- fraser: &fraser
- stream: fraser
- branch: 'stable/{stream}'
- gs-pathname: '/{stream}'
- disabled: false
+ stream:
+ - master:
+ branch: '{stream}'
+ gs-pathname: ''
+ disabled: false
+ - fraser: &fraser
+ branch: 'stable/{stream}'
+ gs-pathname: '/{stream}'
+ disabled: false
# -------------------------------
# DEPLOY TYPE ANCHORS
# -------------------------------
@@ -28,20 +27,9 @@
# -------------------------------
# CI POD's
# -------------------------------
- # fraser
- # -------------------------------
pod:
- # yamllint disable rule:key-duplicates
- - auto-baremetal:
- <<: *baremetal
- <<: *fraser
- # -------------------------------
- # master
- # -------------------------------
- auto-baremetal:
<<: *baremetal
- <<: *master
- # yamllint enable rule:key-duplicates
# -------------------------------
# scenarios
# -------------------------------
@@ -53,7 +41,8 @@
jobs:
- '{installer}-{scenario}-{pod}-auto-daily-{stream}'
- '{installer}-deploy-{pod}-daily-{stream}'
- - '{project}-verify-basic'
+ - 'auto-verify-{stream}'
+ - 'auto-merge-{stream}'
########################
# job templates
@@ -107,6 +96,98 @@
same-node: true
block: true
+- job-template:
+ name: 'auto-verify-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ project-type: freestyle
+
+ concurrent: true
+
+ properties:
+ - logrotate-default
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ branch: '{branch}'
+ - 'opnfv-build-ubuntu-defaults'
+
+ scm:
+ - git-scm-gerrit
+
+ triggers:
+ - gerrit:
+ server-name: 'gerrit.opnfv.org'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: 'false'
+ exclude-trivial-rebase: 'false'
+ exclude-no-code-change: 'false'
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: 'recheck'
+ - comment-added-contains-event:
+ comment-contains-value: 'reverify'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ forbidden-file-paths:
+ - compare-type: ANT
+ pattern: 'docs/**'
+
+ builders:
+ - shell: |
+ pwd
+ ./ci/build-auto.sh verify
+
+- job-template:
+ name: 'auto-merge-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ project-type: freestyle
+
+ concurrent: true
+
+ properties:
+ - logrotate-default
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ branch: '{branch}'
+ - 'opnfv-build-ubuntu-defaults'
+
+ scm:
+ - git-scm
+
+ triggers:
+ - 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}'
+ forbidden-file-paths:
+ - compare-type: ANT
+ pattern: 'docs/**'
+
+ builders:
+ - shell: |
+ pwd
+ ./ci/build-auto.sh merge
+
########################
# trigger macros
########################