summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-05-12 18:24:37 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-05-12 18:30:59 +0200
commitcc637855c31b2bd8091d866eb5437ecb2afe090c (patch)
tree5953733cecac155a5cc3c268ffa38aa3e19fdd2e /jjb
parent607520b79014311d27ed403e2560e5a3fbcb3a8e (diff)
Create separate build job for foreman daily pipeline
JIRA: OCTO-47 Change-Id: If4e5a7e7da956c7c54d9ff8d481a85e51910b607 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/genesis/genesis-foreman.yml33
1 files changed, 23 insertions, 10 deletions
diff --git a/jjb/genesis/genesis-foreman.yml b/jjb/genesis/genesis-foreman.yml
index 00d7f9ba0..3d98437d3 100644
--- a/jjb/genesis/genesis-foreman.yml
+++ b/jjb/genesis/genesis-foreman.yml
@@ -235,14 +235,6 @@
parameters:
- genesis-parameters:
installer: '{installer}'
- - string:
- name: EXTRA_PARAM
- default: 'extra_value'
- description: "Installer to use."
- - string:
- name: INSTALLER
- default: 'overriden_value'
- description: "Installer to use."
scm:
- git:
@@ -254,6 +246,7 @@
builders:
- 'build'
+ - 'upload-artifact'
- job-template:
name: 'genesis-{installer}-deploy'
@@ -493,8 +486,28 @@
set -o pipefail
set -x
- echo "Hello World"
- env
+ # create the cache directory if it doesn't exist
+ [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY
+
+ # set ARTIFACT_VERSION
+ export ARTIFACT_VERSION=$(date +"%Y-%m-%d_%H-%M-%S")
+
+ # start the build
+ cd $WORKSPACE/$INSTALLER/ci
+ ./build.sh -v $ARTIFACT_VERSION -c file://$CACHE_DIRECTORY $BUILD_DIRECTORY
+
+- builder:
+ name: 'upload-artifact'
+ builders:
+ - shell: |
+ #!/bin/bash
+ set -o errexit
+ set -o nounset
+ set -o pipefail
+ set -x
+
+ # list the build output
+ ls -al $BUILD_DIRECTORY
- builder:
name: 'deploy'