diff options
author | Tim Rozet <tdrozet@gmail.com> | 2015-07-13 15:19:31 -0400 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-08-20 19:08:18 +0000 |
commit | 3fb08b6c76d24bbedf724735685de655a2779681 (patch) | |
tree | d2a3435b1afeb72a252b9b92e18416335135b572 /jjb | |
parent | d4e3d20baa7fb4dc2806ffb7c1954c879f3ff300 (diff) |
Adds Foreman virtual deploy on POD1
Virtual deploy for pod 1. Will wait to add it as part of Jenkins verify
until I see it pass in CI.
JIRA: OCTO-99
Change-Id: I2516a87ac2a292bbd1678ba1ae8dadeaca5017ac
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/genesis/genesis-foreman.yml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/jjb/genesis/genesis-foreman.yml b/jjb/genesis/genesis-foreman.yml index c76d1125e..6b05ea7ab 100644 --- a/jjb/genesis/genesis-foreman.yml +++ b/jjb/genesis/genesis-foreman.yml @@ -16,6 +16,7 @@ - 'genesis-foreman-build-{stream}' - 'genesis-foreman-deploy-{stream}' - 'genesis-foreman-deploy-runner-{stream}' + - 'genesis-foreman-deploy-virtual-{stream}' # stream: branch with - in place of / (eg. stable-arno) # branch: branch (eg. stable/arno) @@ -306,6 +307,41 @@ git-revision: true block: true +- job-template: + name: 'genesis-foreman-deploy-virtual-{stream}' + + project-type: freestyle + + disabled: false + + node: opnfv-jump-1 + + logrotate: + daysToKeep: 30 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + parameters: + - project-parameter: + project: '{project}' + - foreman-parameter: + installer: '{installer}' + gs-pathname: '{gs-pathname}' + - string: + name: GIT_BASE + default: ssh://gerrit.opnfv.org:29418/$PROJECT + description: "Used for overriding the GIT URL coming from parameters macro." + + scm: + - git-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + branch: '{branch}' + + builders: + - 'foreman-deploy-virtual' + ######################## # parameter macros ######################## @@ -479,6 +515,30 @@ echo "Done!" - builder: + name: 'foreman-deploy-virtual' + builders: + - shell: | + #!/bin/bash + set -o errexit + set -o nounset + set -o pipefail + + # log info to console + echo "Starting the virtual deployment using $INSTALLER. This could take some time..." + echo "--------------------------------------------------------" + echo + + # cleanup baremetal first (in case baremetal was being used on pod2, remove when moved to isolated Virtual pod) + sudo $WORKSPACE/common/ci/clean.sh + + # initiate virtual deployment + sudo $WORKSPACE/$INSTALLER/ci/deploy.sh -virtual + + echo + echo "--------------------------------------------------------" + echo "Done!" + +- builder: name: 'foreman-upload-artifact' builders: - shell: | |