From: Fatih Degirmenci Date: Wed, 4 Mar 2015 20:18:07 +0000 (+0100) Subject: Add foreman, fuel, opensteak daily jobs X-Git-Tag: arno.2015.1.0~172 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=156b38785c366beee5ef84c57e2fa1de404c3464;p=releng.git 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 --- 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