Fix autorelease generated view file name 73/82273/3
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 28 May 2019 09:54:37 +0000 (19:54 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 29 May 2019 23:19:05 +0000 (09:19 +1000)
$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>
jjb/autorelease/update-autorelease-projects-views.sh

index e34bb6d55b35f1e17ec99ef89f47fc5989d466b5..b3cfe9036f6f449385b50a3689bf86b8074967d1 100755 (executable)
@@ -8,6 +8,7 @@
 # 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}"
@@ -60,4 +61,5 @@ echo "    <<: *releng_autorelease_view_common_${STREAM}" >> "$VIEWS_AR_YAML_FILE
 
 git add "${VIEWS_AR_YAML_FILE}"
 
-cp "${VIEWS_AR_YAML_FILE}" $WORKSPACE/archives
+mkdir -p ${WORKSPACE}/archives
+cp "${VIEWS_AR_YAML_FILE}" ${WORKSPACE}/archives