blob: 9ab17e90708e0e57e5e0393d22e33747df6fde43 [file] [log] [blame]
#!/bin/bash -xv
#*******************************************************************************
# Copyright (c) 2019 Willink Transformations and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v20.html
#
# Contributors:
# E.D.Willink - initial API and implementation
#*******************************************************************************
# Local Modisco publish script for use by the promoter job. It prepares and invokes remote scripts.
#
rm -f downloads.sh publish.zip updates.sh
curl -s -k ${PUBLISH__DOWNLOADS_SH} > downloads.sh
curl -s -k ${PUBLISH__UPDATES_SH} > updates.sh
curl -s -k ${PUBLISH__URL} > publish.zip
ssh genie.modisco@projects-storage.eclipse.org rm -f downloads.sh publish.zip updates.sh
scp downloads.sh genie.modisco@projects-storage.eclipse.org:downloads.sh
scp publish.zip genie.modisco@projects-storage.eclipse.org:publish.zip
scp updates.sh genie.modisco@projects-storage.eclipse.org:updates.sh
ssh genie.modisco@projects-storage.eclipse.org chmod +x downloads.sh updates.sh
ssh genie.modisco@projects-storage.eclipse.org bash -ex downloads.sh -v "'${PUBLISH__VERSION}'" -t "'${PUBLISH__BUILD_T}'" -q "'${PUBLISH__QUALIFIER}'" -a "'${PUBLISH__ALIAS}'"
ssh genie.modisco@projects-storage.eclipse.org bash -ex updates.sh -v "'${PUBLISH__VERSION}'" -t "'${PUBLISH__BUILD_T}'" -q "'${PUBLISH__QUALIFIER}'"