summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2016-07-21 17:43:07 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-07-21 17:43:07 +0000
commitfa934396c23d95ba5a3465ff884f2478d52455af (patch)
tree4e8c9e1df3220925c01d0f2f31a56cf0a167e673 /jjb
parentc785d7a1c48fc21adcd4b3ddd3579a82973da321 (diff)
parent3b7093573e6ea813ac00831fe4baab8ca244b45c (diff)
Merge "Add 'builder-sandbox' job to Releng"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/releng/releng-ci-jobs.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/jjb/releng/releng-ci-jobs.yml b/jjb/releng/releng-ci-jobs.yml
index 60551f5bb..f346c1c5f 100644
--- a/jjb/releng/releng-ci-jobs.yml
+++ b/jjb/releng/releng-ci-jobs.yml
@@ -2,6 +2,7 @@
name: builder-jobs
jobs:
- 'builder-verify-jjb'
+ - 'builder-sandbox'
- 'builder-merge'
- 'artifacts-api'
@@ -101,6 +102,55 @@
jenkins-jobs update --delete-old jjb/
- job-template:
+ name: 'builder-sandbox'
+
+ # Upload all jjb jobs to sandbox instance, excluding jobs jjb
+ # builder jobs
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: 'master'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ choosing-strategy: 'default'
+
+ triggers:
+ - gerrit:
+ trigger-on:
+ - change-merged-event
+ - comment-added-contains-event:
+ comment-contains-value: 'remerge'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: 'releng'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/sandbox'
+ file-paths:
+ - compare-type: ANT
+ pattern: jjb/**
+ - compare-type: ANT
+ pattern: utils/**
+
+ builders:
+ - shell:
+ !include-raw: verify-releng.sh
+ - shell: |
+ #!/bin/bash
+ source /opt/virtualenv/jenkins-job-builder/bin/activate
+ cd /opt/jenkins-ci/releng
+ git pull
+ cp /etc/jenkins_jobs/jenkins_jobs.ini jenkins_sandbox.ini
+ sed -i 's/url=.*/url=https:\/\/sandbox.opnfv.org\//g' jenkins_sandbox.ini
+ jenkins-jobs --conf jenkins_sandbox.ini update -r -x jjb/releng --delete-old jjb
+ rm -f jenkins_sandbox.ini
+
+- job-template:
name: 'artifacts-api'
# Generate and upload the JSON file to used for artifacts site