summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2018-06-28 15:25:30 -0400
committerStephan Herrmann2018-06-28 15:25:30 -0400
commit288c70c00071f381ccc1c9392d203d1684c89b06 (patch)
treec3ce605c5ae1933bb3539bffe15600a54932375a
parenta6f2b95d302de5b3f2ff66da9973d56f86d0c960 (diff)
downloadorg.eclipse.objectteams-288c70c00071f381ccc1c9392d203d1684c89b06.tar.gz
org.eclipse.objectteams-288c70c00071f381ccc1c9392d203d1684c89b06.tar.xz
org.eclipse.objectteams-288c70c00071f381ccc1c9392d203d1684c89b06.zip
Bug 536437 - Automate sign and upload of ecotj.jar
-rwxr-xr-xreleng/build-scripts/bin/createRepository-hipp.sh4
-rwxr-xr-xreleng/build-scripts/bin/publish-ecotj.sh43
2 files changed, 43 insertions, 4 deletions
diff --git a/releng/build-scripts/bin/createRepository-hipp.sh b/releng/build-scripts/bin/createRepository-hipp.sh
index e1b9ba0f2..d1c30a2e7 100755
--- a/releng/build-scripts/bin/createRepository-hipp.sh
+++ b/releng/build-scripts/bin/createRepository-hipp.sh
@@ -7,17 +7,13 @@
BASE=`pwd`
# ABSOLUTE PATHS:
-export STAGINGBASE=/opt/public/download-staging.priv/tools/objectteams
export UPDATES_BASE=/home/data/httpd/download.eclipse.org/objectteams/updates
-export JAVA5=/shared/common/jdk1.5.0-latest
export JAVA8=/shared/common/jdk1.8.0_x64-latest
# RELATIVE PATHS:
BUILD=${BASE}/releng/build-scripts/build
METADATA=${BASE}/metadata
-export JAR_PROCESSOR_JAVA=java8
-
# Find the master repository to build upon:
if [ "$1" == "none" ]
then
diff --git a/releng/build-scripts/bin/publish-ecotj.sh b/releng/build-scripts/bin/publish-ecotj.sh
new file mode 100755
index 000000000..ee4c71313
--- /dev/null
+++ b/releng/build-scripts/bin/publish-ecotj.sh
@@ -0,0 +1,43 @@
+# OPTIONAL VARIABLES TO BE SUPPLIED VIA ENV:
+# SIGN (unset or nosign)
+# PROMOTE (unset or false or target directory)
+
+BASE=`pwd`
+
+# ABSOLUTE PATHS:
+export ECOTJ_BASE=/home/data/httpd/download.eclipse.org/objectteams/ecotj
+
+
+OTDTVERSION=`cat ${BASE}/testrun/build-root/src/finalFeaturesVersions.properties|grep "objectteams.otdt="|cut -d '=' -f 2`
+if [ "${OTDTVERSION}" == "" ]
+then
+ echo "finalFeaturesVersions.properties not found, maybe build hasn't run successfully?"
+ exit 3
+fi
+echo "OTDTVERSION is $OTDTVERSION"
+
+# FIXME:
+ECOTJ_DIR=${BASE}/testrun/ecj/I-2.6.0-201806120848
+
+echo "====Step 1: request signing ===="
+cd ${ECOTJ_DIR}
+ECOTJ_JAR=`ls ecotj-*[0-9].jar`
+echo "ecotj is ${ECOTJ_JAR}"
+
+ECOTJ_NAME="ecotj-${BUILDTYPE}-${OTDTVERSION}"
+echo "ecotj name = ${ECOTJ_NAME}"
+
+curl -o ${ECOTJ_NAME}-signed.jar -F file=@${ECOTJ_JAR} http://build.eclipse.org:31338/sign
+
+echo "Signing completed"
+
+
+echo "====Step 2: upload ===="
+
+if [ "${PROMOTE}" != "false" ]
+then
+ cp ${ECOTJ_JAR} ${ECOTJ_BASE}/${ECOTJ_NAME}.jar
+ cp ${ECOTJ_NAME}-signed.jar ${ECOTJ_BASE}/
+ ls -latr ${ECOTJ_BASE}
+fi
+echo "====DONE===="