diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-03-04 21:18:07 +0100 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-03-04 21:18:07 +0100 |
commit | 156b38785c366beee5ef84c57e2fa1de404c3464 (patch) | |
tree | 099d4372ccc710e418e537eebd991a0609ea043d | |
parent | bf75a43062df9aaf14b9589f2b1dda9d4a56f292 (diff) |
Add foreman, fuel, opensteak daily jobs
- Create simple high level daily jobs per installer
- Create simple and common build, deploy, and test jobs
Change-Id: Ib4e12444038b4e963548e479349402bdc2bbb9cc
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
-rw-r--r-- | jjb/genesis/genesis.yml | 315 |
1 files changed, 314 insertions, 1 deletions
diff --git a/jjb/genesis/genesis.yml b/jjb/genesis/genesis.yml index 66f2bd890..6efac1bdc 100644 --- a/jjb/genesis/genesis.yml +++ b/jjb/genesis/genesis.yml @@ -4,6 +4,12 @@ - 'genesis-daily-master' - 'genesis-merge' - 'genesis-verify' + - 'genesis-foreman-daily' + - 'genesis-fuel-daily' + - 'genesis-opensteak-daily' + - 'genesis-build' + - 'genesis-deploy' + - 'genesis-test' # stream: branch with - in place of / (eg. stable-helium) # branch: branch (eg. stable/helium) @@ -122,7 +128,7 @@ make clean || true make echo "what tests can we run here?" - + - job-template: name: 'genesis-merge' @@ -182,3 +188,310 @@ echo foo make clean || true make all + +- job-template: + name: genesis-foreman-daily + + project-type: freestyle + + disabled: true + + node: foreman + + parameters: + - string: + name: INSTALLER + default: foreman + description: "Installer to use." + - 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: https://gerrit.opnfv.org/gerrit/genesis + branches: + - $GERRIT_BRANCH + refspec: $GERRIT_REFSPEC + + triggers: + - pollscm: '@midnight' + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - trigger-builds: + - project: genesis-build + current-parameters: true + git-revision: true + same-node: true + block: true + - project: genesis-deploy + current-parameters: true + git-revision: true + same-node: true + block: true + - project: genesis-test + current-parameters: true + git-revision: true + same-node: true + block: true +- job-template: + name: genesis-fuel-daily + + project-type: freestyle + + disabled: true + + node: foreman + + parameters: + - string: + name: INSTALLER + default: fuel + description: "Installer to use." + - 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: https://gerrit.opnfv.org/gerrit/genesis + branches: + - $GERRIT_BRANCH + refspec: $GERRIT_REFSPEC + + triggers: + - pollscm: '@midnight' + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - trigger-builds: + - project: genesis-build + current-parameters: true + git-revision: true + same-node: true + block: true + - project: genesis-deploy + current-parameters: true + git-revision: true + same-node: true + block: true + - project: genesis-test + current-parameters: true + git-revision: true + same-node: true + block: true +- job-template: + name: genesis-opensteak-daily + + project-type: freestyle + + disabled: true + + node: opensteak + + parameters: + - string: + name: INSTALLER + default: opensteak + description: "Installer to use." + - 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: https://gerrit.opnfv.org/gerrit/genesis + branches: + - $GERRIT_BRANCH + refspec: $GERRIT_REFSPEC + + triggers: + - pollscm: '@midnight' + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + builders: + - trigger-builds: + - project: genesis-build + current-parameters: true + git-revision: true + same-node: true + block: true + - project: genesis-deploy + current-parameters: true + git-revision: true + same-node: true + block: true + - project: genesis-test + current-parameters: true + git-revision: true + same-node: true + block: true + +- job-template: + name: genesis-build + + project-type: freestyle + + disabled: true + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + parameters: + - string: + name: INSTALLER + description: "Installer to use. Mandatory parameter." + - string: + name: GERRIT_BRANCH + default: 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: https://gerrit.opnfv.org/gerrit/genesis + branches: + - $GERRIT_BRANCH + refspec: $GERRIT_REFSPEC + + builders: + - shell: | + #!/bin/bash + + set -o errexit + set -o nounset + set -o pipefail + + echo cd $WORKSPACE/$INSTALLER/ci + echo ./build.sh + +- job-template: + name: genesis-deploy + + project-type: freestyle + + disabled: true + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + parameters: + - string: + name: INSTALLER + description: "Installer to use. Mandatory parameter." + - string: + name: GERRIT_BRANCH + default: 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: https://gerrit.opnfv.org/gerrit/genesis + branches: + - $GERRIT_BRANCH + refspec: $GERRIT_REFSPEC + + builders: + - shell: | + #!/bin/bash + + set -o errexit + set -o nounset + set -o pipefail + + echo cd $WORKSPACE/$INSTALLER/ci + echo ./build.sh + +- job-template: + name: genesis-test + + project-type: freestyle + + disabled: true + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + parameters: + - string: + name: INSTALLER + description: "Installer to use. Mandatory parameter." + - string: + name: GERRIT_BRANCH + default: 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: https://gerrit.opnfv.org/gerrit/genesis + branches: + - $GERRIT_BRANCH + refspec: $GERRIT_REFSPEC + + builders: + - shell: | + #!/bin/bash + + set -o errexit + set -o nounset + set -o pipefail + + echo cd $WORKSPACE/$INSTALLER/ci + echo ./test.sh |