Krinkle has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/197811

Change subject: civi-ci: Use BUILD_TAG instead of JOB_NAME + BUILD_ID
......................................................................

civi-ci: Use BUILD_TAG instead of JOB_NAME + BUILD_ID

This is provided by Jenkins and will be unique accross all builds.
The current version of Jenkins actually implements this exactly
as JOB_NAME + JOB_ID so not much changes.

> job/test-krinkle/build/2$ env
> JOB_NAME=test-krinkle
> BUILD_NUMBER=2
> BUILD_TAG=jenkins-test-krinkle-2

Change-Id: I077065593c0aa219e85fe0df0dfef24fc8a3c6e2
---
M bin/civi-ci-settings.sh
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/jenkins 
refs/changes/11/197811/1

diff --git a/bin/civi-ci-settings.sh b/bin/civi-ci-settings.sh
index be76c7c..70c8d6e 100644
--- a/bin/civi-ci-settings.sh
+++ b/bin/civi-ci-settings.sh
@@ -10,8 +10,7 @@
 fi
 
 # MYSQL database name cant use spaces or dashes:
-JOB_ID="${JOB_NAME// /_}_${BUILD_NUMBER}"
-JOB_ID="${JOB_ID//-/_}"
+JOB_ID="${BUILD_TAG//-/_}"
 
 DRUPAL_SCHEMA="drupal_${JOB_ID}"
 CIVICRM_SCHEMA="civicrm_${JOB_ID}"

-- 
To view, visit https://gerrit.wikimedia.org/r/197811
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I077065593c0aa219e85fe0df0dfef24fc8a3c6e2
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to