summaryrefslogtreecommitdiffstats
path: root/jjb/genesis
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-05-04 17:09:08 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-05-04 17:13:42 +0200
commit9939d46759b1bdd663609f3e1a741c1b792f18d1 (patch)
tree9c620b4a7e9fb4efb1b443ee687d6822a7004192 /jjb/genesis
parent248c8ab6e2ebf5e716e00db6eea5eb2f9b99139e (diff)
Dummy deployment for foreman
Try out foreman dummy deployment on LF POD2 jumphost - Create a standalone deploy job for foreman (genesis-foreman-deploy) - Clone the needed scripts from github as a first step - List the contents of the WORKSPSACE to see what is expected is there JIRA: OCTO-47 Change-Id: If5f402fda0ecae7414905b1017268c787bcbc5ed Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/genesis')
-rw-r--r--jjb/genesis/genesis-foreman.yml59
1 files changed, 59 insertions, 0 deletions
diff --git a/jjb/genesis/genesis-foreman.yml b/jjb/genesis/genesis-foreman.yml
index 5c2ec99a9..c24633677 100644
--- a/jjb/genesis/genesis-foreman.yml
+++ b/jjb/genesis/genesis-foreman.yml
@@ -9,6 +9,7 @@
- 'genesis-foreman-verify'
- 'genesis-foreman-merge'
- 'genesis-foreman-daily-{stream}'
+ - 'genesis-foreman-deploy'
# stream: branch with - in place of / (eg. stable-helium)
# branch: branch (eg. stable/helium)
@@ -198,6 +199,51 @@
- 'foreman-daily-master'
+- job-template:
+ name: 'genesis-foreman-deploy'
+
+ project-type: freestyle
+
+ node: opnfv-jump-2
+
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 10
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ parameters:
+ - string:
+ name: BUILD_DIRECTORY
+ default: $WORKSPACE/build_output
+ - string:
+ name: GIT_BASE
+ default: https://github.com/trozet/bgs_vagrant.git
+ description: "This is a temporary location to clone the needed scripts. Will be replaced with OPNFV Git URL."
+ - 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
+
+ wrappers:
+ - ssh-agent-credentials:
+ user: '{ssh-credentials}'
+
+ builders:
+ - 'foreman-deploy'
+
########################
# builder macros
########################
@@ -341,3 +387,16 @@
# remove the BUILD_DIRECTORY and downlaoded artifact to reclaim some space
/bin/rm -rf $BUILD_DIRECTORY
/bin/rm -rf $WORKSPACE/opnfv.iso
+
+- builder:
+ name: foreman-deploy
+ builders:
+ - shell: |
+ #!/bin/bash
+ set -o errexit
+ set -o nounset
+ set -o pipefail
+ set -x
+
+ cd $WORKSPACE
+ ls -al