Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian de Alwis2019-06-06 13:33:01 +0000
committerBrian de Alwis2019-06-06 13:47:58 +0000
commit816eae2b45937929d5955246489d6b8ce443acb9 (patch)
tree6c76e08be095bac29a653902a2952e2695525cc3
parentd41f1424afe9bbd443f04392c353888d12439653 (diff)
downloadorg.eclipse.usssdk-816eae2b45937929d5955246489d6b8ce443acb9.tar.gz
org.eclipse.usssdk-816eae2b45937929d5955246489d6b8ce443acb9.tar.xz
org.eclipse.usssdk-816eae2b45937929d5955246489d6b8ce443acb9.zip
Jenkins BUILD_ID no longer includes timestamp
-rw-r--r--org.eclipse.userstorage.releng/hudson/promote.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.userstorage.releng/hudson/promote.sh b/org.eclipse.userstorage.releng/hudson/promote.sh
index a433694..19d5388 100644
--- a/org.eclipse.userstorage.releng/hudson/promote.sh
+++ b/org.eclipse.userstorage.releng/hudson/promote.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+if [[ "$BUILD_TIMESTAMP" == "" ]]; then
+ BUILD_TIMESTAMP=`date -u +%Y-%m-%d_%H-%M-%S`
+fi
if [[ "$BUILD_TYPE" == "" || "$BUILD_TYPE" == none ]]; then
BUILD_TYPE=nightly
@@ -12,7 +15,7 @@ if [[ "$BUILD_KEY" == "" ]]; then
fi
if [[ "$TYPE" != "" ]]; then
- BUILD_KEY=$TYPE`echo $BUILD_ID | sed 's/\([0-9]*\)-\([0-9]*\)-\([0-9]*\)_\([0-9]*\)-\([0-9]*\)-\([0-9]*\)/\1\2\3-\4\5\6/g'`
+ BUILD_KEY=$TYPE`echo $BUILD_TIMESTAMP | sed 's/\([0-9]*\)-\([0-9]*\)-\([0-9]*\)_\([0-9]*\)-\([0-9]*\)-\([0-9]*\)/\1\2\3-\4\5\6/g'`
fi
fi

Back to the top