From e77056c220389b43246852ed8c64271eddf299c8 Mon Sep 17 00:00:00 2001 From: m00133142 Date: Mon, 20 Apr 2015 10:02:04 +0800 Subject: Add jjb template for Compass BGS track JIRA: OCTO-24 Change-Id: Ifba2b070f57ecb19bc4c9bacb5eda80552332567 Signed-off-by: m00133142 --- jjb/genesis/genesis-compass.yml | 214 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 jjb/genesis/genesis-compass.yml 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!" -- cgit 1.2.3-korg