summaryrefslogtreecommitdiffstats
path: root/jjb/genesis
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-04-21 06:19:45 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-04-21 06:19:45 +0000
commit2d5841eb74688afbec3ef571199bf2a8d4c09276 (patch)
tree5ddea968731e0b1585b43d380d4281fdef384efd /jjb/genesis
parentde61c2157175d5795465d010807d5eb15a92f909 (diff)
parente77056c220389b43246852ed8c64271eddf299c8 (diff)
Merge "Add jjb template for Compass BGS track"
Diffstat (limited to 'jjb/genesis')
-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!"