Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2019-08-13 10:37:40 +0000
committerEd Willink2019-08-13 10:37:40 +0000
commit35f1cd8d73b8aed8c24b088eacad83b14b6d6bb4 (patch)
tree808a62dfedf2bf2946f6c55304666e11dfa41e09
parenteae1616e6ff50a544ec9e4c2f33612498ad5e470 (diff)
downloadorg.eclipse.qvtd-35f1cd8d73b8aed8c24b088eacad83b14b6d6bb4.tar.gz
org.eclipse.qvtd-35f1cd8d73b8aed8c24b088eacad83b14b6d6bb4.tar.xz
org.eclipse.qvtd-35f1cd8d73b8aed8c24b088eacad83b14b6d6bb4.zip
[releng] use ssh for JIRO
-rw-r--r--releng/org.eclipse.qvtd.releng.build-site/downloads.sh22
-rw-r--r--releng/org.eclipse.qvtd.releng.build-site/publisher.properties13
-rw-r--r--releng/org.eclipse.qvtd.releng.build-site/updates.sh21
3 files changed, 41 insertions, 15 deletions
diff --git a/releng/org.eclipse.qvtd.releng.build-site/downloads.sh b/releng/org.eclipse.qvtd.releng.build-site/downloads.sh
index 145e7873a..09f11c7fa 100644
--- a/releng/org.eclipse.qvtd.releng.build-site/downloads.sh
+++ b/releng/org.eclipse.qvtd.releng.build-site/downloads.sh
@@ -12,16 +12,28 @@
#
# Promote the PUBLISH__URL to the downloads 'page'.
#
-# PUBLISH__URL The zip to be published e.g. https://ci.eclipse.org/ocl/job/qvtd-master/25/artifact/releng/org.eclipse.qvtd.releng.build-site/target/org.eclipse.qvtd-0.16.0.v20171025-1600.zip
-# PUBLISH__VERSION Unqualified version e.g. 0.16.0
-# PUBLISH__BUILD_T Build type N/I/S, blank suppresses promotion
-# PUBLISH__QUALIFIER Version qualifier e.g. v20171025-1600
-# PUBLISH__ALIAS Non blank to use alias as part of final name
+# -u PUBLISH__URL The zip to be published e.g. https://ci.eclipse.org/ocl/job/qvtd-master/25/artifact/releng/org.eclipse.qvtd.releng.build-site/target/org.eclipse.qvtd-0.16.0.v20171025-1600.zip
+# -v PUBLISH__VERSION Unqualified version e.g. 0.16.0
+# -t PUBLISH__BUILD_T Build type N/I/S, blank suppresses promotion
+# -q PUBLISH__QUALIFIER Version qualifier e.g. v20171025-1600
+# -a PUBLISH__ALIAS Non blank to use alias as part of final name
#
dropsFolder="/home/data/httpd/download.eclipse.org/mmt/qvtd/downloads/drops/"
group="modeling.mmt.qvtd"
zipPrefix="qvtd-incubation-Update-"
+while getopts u:v:t:q:a: option
+do
+case "${option}"
+in
+u) PUBLISH__URL=${OPTARG};;
+v) PUBLISH__VERSION=${OPTARG};;
+t) PUBLISH__BUILD_T=${OPTARG};;
+q) PUBLISH__QUALIFIER=${OPTARG};;
+a) PUBLISH__ALIAS=${OPTARG};;
+esac
+done
+
if [ -n "${PUBLISH__BUILD_T}" ]
then
diff --git a/releng/org.eclipse.qvtd.releng.build-site/publisher.properties b/releng/org.eclipse.qvtd.releng.build-site/publisher.properties
index 9c28f4f14..05f1cf086 100644
--- a/releng/org.eclipse.qvtd.releng.build-site/publisher.properties
+++ b/releng/org.eclipse.qvtd.releng.build-site/publisher.properties
@@ -1,11 +1,14 @@
# QVTd publisher properties for use by the promoter job:
#
# rm -f downloads.sh updates.sh
-# curl -s -k ${PUBLISH__DOWNLOADS_SH} > downloads.sh
-# curl -s -k ${PUBLISH__UPDATES_SH} > updates.sh
-# chmod +x downloads.sh updates.sh
-# bash -ex downloads.sh
-# bash -ex updates.sh
+# curl -s ${PUBLISH__DOWNLOADS_SH} > downloads.sh
+# curl -s ${PUBLISH__UPDATES_SH} > updates.sh
+# ssh genie.qvtd@projects-storage.eclipse.org rm -f downloads.sh updates.sh
+# scp downloads.sh genie.qvtd@projects-storage.eclipse.org:downloads.sh
+# scp updates.sh genie.qvtd@projects-storage.eclipse.org:updates.sh
+# ssh genie.qvtd@projects-storage.eclipse.org chmod +x downloads.sh updates.sh
+# ssh genie.qvtd@projects-storage.eclipse.org bash -ex downloads.sh -u "'${PUBLISH__URL}'" -v "'${PUBLISH__VERSION}'" -t "'${PUBLISH__BUILD_T}'" -q "'${PUBLISH__QUALIFIER}'" -a "'${PUBLISH__ALIAS}'"
+# ssh genie.qvtd@projects-storage.eclipse.org bash -ex updates.sh -u "'${PUBLISH__URL}'" -v "'${PUBLISH__VERSION}'" -t "'${PUBLISH__BUILD_T}'" -q "'${PUBLISH__QUALIFIER}'"
#
PUBLISH__ALIAS=${BUILD_ALIAS}
PUBLISH__BUILD_T=${buildType}
diff --git a/releng/org.eclipse.qvtd.releng.build-site/updates.sh b/releng/org.eclipse.qvtd.releng.build-site/updates.sh
index 6eab72064..0ccd43406 100644
--- a/releng/org.eclipse.qvtd.releng.build-site/updates.sh
+++ b/releng/org.eclipse.qvtd.releng.build-site/updates.sh
@@ -12,17 +12,28 @@
#
# Promote the PUBLISH__URL to an updates repository.
#
-# PUBLISH__URL The zip to be published e.g. https://ci.eclipse.org/ocl/job/qvtd-master/25/artifact/releng/org.eclipse.qvtd.releng.build-site/target/org.eclipse.qvtd-0.16.0.v20171025-1600.zip
-# PUBLISH__VERSION Unqualified version e.g. 0.16.0
-# PUBLISH__BUILD_T Build type N/I/S, blank suppresses promotion
-# PUBLISH__QUALIFIER Version qualifier e.g. v20171025-1600
+# -u PUBLISH__URL The zip to be published e.g. https://ci.eclipse.org/ocl/job/qvtd-master/25/artifact/releng/org.eclipse.qvtd.releng.build-site/target/org.eclipse.qvtd-0.16.0.v20171025-1600.zip
+# -v PUBLISH__VERSION Unqualified version e.g. 0.16.0
+# -t PUBLISH__BUILD_T Build type N/I/S, blank suppresses promotion
+# -q PUBLISH__QUALIFIER Version qualifier e.g. v20171025-1600
#
updatesFolder="/home/data/httpd/download.eclipse.org/mmt/qvtd/updates/"
group="modeling.mmt.qvtd"
localZip="qvtd.zip"
projectRepoName="QVTd"
manageComposite="/shared/common/apache-ant-latest/bin/ant -f /shared/modeling/tools/promotion/manage-composite.xml"
-externalUpdatesFolder="http://download.eclipse.org/mmt/qvtd/updates/"
+externalUpdatesFolder="https://download.eclipse.org/mmt/qvtd/updates/"
+
+while getopts u:v:t:q: option
+do
+case "${option}"
+in
+u) PUBLISH__URL=${OPTARG};;
+v) PUBLISH__VERSION=${OPTARG};;
+t) PUBLISH__BUILD_T=${OPTARG};;
+q) PUBLISH__QUALIFIER=${OPTARG};;
+esac
+done
if [ -n "${PUBLISH__BUILD_T}" ]
then

Back to the top