$WORKSPACE/archives is a dir which is created later in
the job, without the dir existing the .yaml file generated
gets created as an $WORKSPACE/archives file and
fails when running `lftools deploy logs`.
The correct way to handle this create a $WORKSPACE/archives
and add the file to the dir.
Change-Id: I313fed7d1ecfa8545ad6e8b59634c7f63d25e597
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
+echo "---> update-autorelease-projects-views.sh"
VIEWS_AR_YAML_FILE="${WORKSPACE}/jjb/autorelease/view-autorelease-${STREAM}.yaml"
BRANCH="stable/${STREAM}"
git add "${VIEWS_AR_YAML_FILE}"
-cp "${VIEWS_AR_YAML_FILE}" $WORKSPACE/archives
+mkdir -p ${WORKSPACE}/archives
+cp "${VIEWS_AR_YAML_FILE}" ${WORKSPACE}/archives