From 3fb08b6c76d24bbedf724735685de655a2779681 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Mon, 13 Jul 2015 15:19:31 -0400 Subject: 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 --- jjb/genesis/genesis-foreman.yml | 60 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) 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 ######################## @@ -478,6 +514,30 @@ echo "--------------------------------------------------------" 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: -- cgit 1.2.3-korg