diff options
author | Tim Rozet <trozet@redhat.com> | 2016-01-14 03:07:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-14 03:07:22 +0000 |
commit | ab273f3fb5bdb3afcd240c09d4a69a5081b3bb93 (patch) | |
tree | a52172b1fac5889e75efd2e0f89d5e08a776d43b /jjb | |
parent | cb464a6a74043290d9d468485cf31b3393bd4d48 (diff) | |
parent | 05d0e2a13717fe128b45a18c11a2a1a27a63ae40 (diff) |
Merge "apex: adds brahmaputra and moves daily to use baremetal"
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/apex/apex.yml | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index a2c105366..d61f2a265 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -14,6 +14,9 @@ - master: branch: 'master' gs-pathname: '' + - brahmaputra: + branch: 'stable/brahmaputra' + gs-pathname: '/brahmaputra' project: 'apex' @@ -33,6 +36,10 @@ name: GIT_BASE default: https://gerrit.opnfv.org/gerrit/$PROJECT description: "Used for overriding the GIT URL coming from parameters macro." + - string: + name: ARTIFACT_VERSION + default: 'dev' + description: "Artifact version type" scm: - gerrit-trigger-scm: @@ -282,7 +289,7 @@ - "apex-build.*" triggers: - - 'apex-{stream}' + - 'apex-master' builders: - trigger-builds: @@ -290,7 +297,7 @@ git-revision: true block: true - trigger-builds: - - project: 'apex-deploy-virtual-{stream}' + - project: 'apex-deploy-baremetal-{stream}' git-revision: true block: true - trigger-builds: @@ -319,12 +326,16 @@ default: 'latest' description: "RPM Artifact name that will be appended to GS_URL to deploy a specific artifact" - string: + name: ARTIFACT_VERSION + default: 'daily' + description: "Artifact version type" + - string: name: BUILD_DIRECTORY default: $WORKSPACE/build_output description: "Directory where the build artifact will be located upon the completion of the build." - string: name: CACHE_DIRECTORY - default: $HOME/opnfv/cache/{gs-pathname} + default: $HOME/opnfv/cache{gs-pathname} description: "Directory where the cache to be used during the build is located." - string: name: GIT_BASE @@ -332,7 +343,7 @@ description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW." - string: name: GS_URL - default: artifacts.opnfv.org/$PROJECT/{gs-pathname} + default: artifacts.opnfv.org/$PROJECT{gs-pathname} description: "URL to Google Storage." ######################## @@ -353,7 +364,17 @@ # create the cache directory if it doesn't exist [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY # set OPNFV_ARTIFACT_VERSION - export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S") + if echo $GERRIT_BRANCH | grep "brahmaputra" 1> /dev/null; then + export OPNFV_ARTIFACT_VERSION="bramaputra.1.rc0" + else + if [ "$ARTIFACT_VERSION" == "dev" ]; then + export OPNFV_ARTIFACT_VERSION=dev${BUILD_NUMBER} + elif [ "$ARTIFACT_VERSION" == "daily" ]; then + export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d") + else + export OPNFV_ARTIFACT_VERSION=${ARTIFACT_VERSION} + fi + fi # start the build cd $WORKSPACE/ci ./build.sh -v $OPNFV_ARTIFACT_VERSION -c file://$CACHE_DIRECTORY $BUILD_DIRECTORY |