From 7e1c937ec3cbd609d1d354a817155ce8af68bdec Mon Sep 17 00:00:00 2001 From: Anton Chevychalov Date: Fri, 9 Dec 2016 11:49:35 +0300 Subject: [PATCH] Enhansment of build_cluster job Download code has been refactored. That allow now take exact commit over TOOLS_COMMIT for testing new version. ADD_CENT_REPO and UPDATE_FUEL order has been changed to reflect real order of that operations. Change-Id: Id34f2e0fb723b677b677653bf8f43a673ba41d4c --- jenkins/build_cluster/config.xml | 35 ++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/jenkins/build_cluster/config.xml b/jenkins/build_cluster/config.xml index 1349499..4165639 100644 --- a/jenkins/build_cluster/config.xml +++ b/jenkins/build_cluster/config.xml @@ -71,16 +71,16 @@ Required! Can be direct URL or URL to torrent-file. Check it to predefine cluster config true + + ADD_CENT_REPO + Add repo url. One per line. It will be added as addN.repo. It will be used in update. + + UPDATE_FUEL Update fuel version to latest MU (7.0 and 8.0 only) or upgrade release 9.x (9.0 to 9.1) false - - ADD_CENT_REPO - Add repo url. One per line. It will be added as add<i>.repo - - NETWORK_TYPE Choose a network type or leave it empty @@ -121,6 +121,11 @@ Required! Can be direct URL or URL to torrent-file. allCases + + TOOLS_COMMIT + Commit of https://review.fuel-infra.org/#/q/project:tools/sustaining. For testing new versions only. + + @@ -142,13 +147,21 @@ Required! Can be direct URL or URL to torrent-file. set -x export ENV_NAME=${BUILD_USER_ID}-${BUILD_NUMBER} export PYTHONUNBUFFERED=1 -curl -o ./build_cluster.py "https://raw.githubusercontent.com/Mirantis/tools-sustaining/master/jenkins/build_cluster/build_cluster.py" -curl -o ./scancodes.py "https://raw.githubusercontent.com/Mirantis/tools-sustaining/master/jenkins/build_cluster/scancodes.py" -curl -o ./update_helper.sh "https://raw.githubusercontent.com/Mirantis/tools-sustaining/master/jenkins/build_cluster/update_helper.sh" -curl -o ./repo_helper.sh "https://raw.githubusercontent.com/Mirantis/tools-sustaining/master/jenkins/build_cluster/repo_helper.sh" -chmod +x update_helper.sh -chmod +x repo_helper.sh +commit_url="" + + +if [ -n "$TOOLS_COMMIT" ]; then + echo "Using non master commit of build_cluster tools (${TOOLS_COMMIT})" + commit_url=";hb=${TOOLS_COMMIT}" +fi + +for file in build_cluster.py scancodes.py update_helper.sh repo_helper.sh; do + #curl -o ./${file} "https://raw.githubusercontent.com/Mirantis/tools-sustaining/master/jenkins/build_cluster/${file}" + curl -o ./${file} "https://review.fuel-infra.org/gitweb?p=tools/sustaining.git;a=blob_plain;f=jenkins/build_cluster/${file}${commit_url}" + chmod +x ${file} +done; + python build_cluster.py -- 2.45.2