summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorm00133142 <meimei@huawei.com>2015-04-20 10:02:04 +0800
committerm00133142 <meimei@huawei.com>2015-04-20 10:02:04 +0800
commite77056c220389b43246852ed8c64271eddf299c8 (patch)
treeeeae4661bfb2862eb9255418abaae6b2b0e93f6b /jjb
parent1b85db2e0db4a245cebf1fea46ecb10ba32e950e (diff)
Add jjb template for Compass BGS track
JIRA: OCTO-24 Change-Id: Ifba2b070f57ecb19bc4c9bacb5eda80552332567 Signed-off-by: m00133142 <meimei@huawei.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/genesis/genesis-compass.yml214
1 files changed, 214 insertions, 0 deletions
diff --git a/jjb/genesis/genesis-compass.yml b/jjb/genesis/genesis-compass.yml
new file mode 100644
index 000000000..ff915b4cc
--- /dev/null
+++ b/jjb/genesis/genesis-compass.yml
@@ -0,0 +1,214 @@
+# this is the job configuration for bgs
+- project:
+
+ name: genesis-compass
+
+ installer:
+ - compass
+ jobs:
+ - 'genesis-compass-verify'
+ - 'genesis-compass-merge'
+ - 'genesis-compass-daily-{stream}'
+
+ # stream: branch with - in place of / (eg. stable-helium)
+ # branch: branch (eg. stable/helium)
+ stream:
+ - master:
+ branch: 'master'
+
+ project: 'genesis'
+
+########################
+# job templates
+########################
+
+- job-template:
+ name: 'genesis-compass-verify'
+
+ project-type: freestyle
+
+ node: compass-build-deploy-03
+
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 10
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ parameters:
+ - string:
+ name: BUILD_DIRECTORY
+ default: $WORKSPACE/build_output
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/genesis
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: 'master'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
+
+ wrappers:
+ - ssh-agent-credentials:
+ user: '{ssh-credentials}'
+
+ triggers:
+ - gerrit:
+ 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: 'genesis'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/master'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'common/**'
+ - compare-type: ANT
+ pattern: 'compass/**'
+
+
+ builders:
+ - 'compass-verify'
+
+- job-template:
+ name: 'genesis-compass-merge'
+
+ # builder-merge job to run JJB update
+ #
+ # This job's purpose is to update all the JJB
+
+ project-type: freestyle
+
+ node: compass-build-deploy-03
+
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 40
+ artifactDaysToKeep: -1
+ artifactNumToKeep: 5
+
+ parameters:
+ - string:
+ name: BUILD_DIRECTORY
+ default: $WORKSPACE/build_output
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/genesis
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: 'master'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ choosing-strategy: 'default'
+
+ wrappers:
+ - ssh-agent-credentials:
+ user: '{ssh-credentials}'
+
+ triggers:
+ - gerrit:
+ trigger-on:
+ - change-merged-event
+ - comment-added-contains-event:
+ comment-contains-value: 'remerge'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: 'genesis'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/master'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'common/**'
+ - compare-type: ANT
+ pattern: 'compass/**'
+
+ builders:
+ - 'compass-merge'
+
+- job-template:
+ name: 'genesis-compass-daily-{stream}'
+
+ project-type: freestyle
+
+ node: compass-build-deploy-03
+
+ parameters:
+ - string:
+ name: BUILD_DIRECTORY
+ default: $WORKSPACE/build_output
+ - string:
+ name: INSTALLER
+ default: 'compass'
+ description: "Installer to use."
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/genesis
+ - string:
+ name: GERRIT_BRANCH
+ default: origin/master
+ description: "Branch to build, deploy and test."
+ - string:
+ name: GERRIT_REFSPEC
+ default: refs/heads/master
+ description: "Refspec to retrieve."
+
+ scm:
+ - git:
+ skip-tag: true
+ url: $GIT_BASE
+ branches:
+ - $GERRIT_BRANCH
+ refspec: $GERRIT_REFSPEC
+
+ triggers:
+ - pollscm: '@midnight'
+
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 10
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ builders:
+ - 'compass-daily-master'
+
+- builder:
+ name: compass-verify
+ builders:
+ - shell: |
+ #!/bin/bash
+ echo "Hello World!"
+
+- builder:
+ name: compass-merge
+ builders:
+ - shell: |
+ #!/bin/bash
+ echo "Hello World!"
+
+- builder:
+ name: compass-daily-master
+ builders:
+ - shell: |
+ #!/bin/bash
+ echo "Hello World!"