blob: fd086610afe3c5e35fa50583c0ac60e58a537a49 [file] [log] [blame]
#!/bin/sh
# ====================================================================
# Copyright (c) 2014 Obeo
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Obeo - initial API and implementation
# ====================================================================
if [ $# -ne 2 ]; then
echo "Execution aborted. One or more of the required parameters is not set.
Usage: $0 artifactURL qualifiedVersion
- artifactURL: the URL where the zipped update site to publish can be donwload.
- qualifiedVersion: the qualified version of the update site to publish.
"
exit 1
fi
artifactURL="${1}"
qualifiedVersion="${2}"
LS_LEVEL=20
source "$(dirname "${0}")/init.sh"
LSINFO "Publishing nightly build '${PROJECT_NAME} ${qualifiedVersion}'"
publishUpdateSite \
"${WORKING_DIRECTORY}" \
"${UPDATE_NIGHTLY_HOME}" \
"${PROJECT_NAME}" \
"${NIGHTLY_FOLDER}" \
"${artifactURL}" \
"${qualifiedVersion}"
LSINFO "'${PROJECT_NAME} ${qualifiedVersion}' has been published at '${UPDATE_NIGHTLY_URL}/${qualifiedVersion}'"