diff options
author | 2015-04-13 09:41:47 -0400 | |
---|---|---|
committer | 2015-04-13 11:50:23 -0400 | |
commit | 151cfc32953ec4106f2ee5811d9f989302069b50 (patch) | |
tree | 7af141a775e43ff819f7ae45a0f228f00944e4b7 /jjb/genesis/genesis-opensteak.yml | |
parent | 242b28dddfffa834500fd5efb22272e1fe74dd3f (diff) |
Split up genesis.yml into its component installers so that we can specify nodes
Change-Id: I97fecab46df84687e73d5e98bed96cacc2e8cb0a
JIRA:0000
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Diffstat (limited to 'jjb/genesis/genesis-opensteak.yml')
-rw-r--r-- | jjb/genesis/genesis-opensteak.yml | 219 |
1 files changed, 219 insertions, 0 deletions
diff --git a/jjb/genesis/genesis-opensteak.yml b/jjb/genesis/genesis-opensteak.yml new file mode 100644 index 000000000..f2322354f --- /dev/null +++ b/jjb/genesis/genesis-opensteak.yml @@ -0,0 +1,219 @@ +# this is the job configuration for bgs +- project: + + name: genesis-opensteak + + installer: + - opensteak + jobs: + - 'genesis-opensteak-verify' + - 'genesis-opensteak-merge' + - 'genesis-opensteak-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-opensteak-verify' + + project-type: freestyle + + node: ericsson-build + + 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: 'opensteak/**' + + + builders: + - 'opensteak-verify' + +- job-template: + name: 'genesis-opensteak-merge' + + # builder-merge job to run JJB update + # + # This job's purpose is to update all the JJB + + project-type: freestyle + + node: ericsson-build + + 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: 'opensteak/**' + + builders: + - 'opensteak-merge' + +- job-template: + name: 'genesis-opensteak-daily-{stream}' + + project-type: freestyle + + node: ericsson-build + + parameters: + - string: + name: BUILD_DIRECTORY + default: $WORKSPACE/build_output + description: "Directory where the build artifact will be located upon the completion of the build." + - string: + name: GS_URL + default: 'artifacts.opnfv.org/genesis/opensteak' + description: "URL to Google Storage." + - string: + name: INSTALLER + default: 'opensteak' + 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: + - 'opensteak-daily-master' + +- builder: + name: opensteak-verify + builders: + - shell: | + #!/bin/bash + echo "Hello World!" + +- builder: + name: opensteak-merge + builders: + - shell: | + #!/bin/bash + echo "Hello World!" + +- builder: + name: opensteak-daily-master + builders: + - shell: | + #!/bin/bash + echo "Hello World!" |