Use double quotes instead of single quotes
[releng/builder.git] / jjb / autorelease / update-autorelease-projects-views.sh
index 87992153c98ba04f1cb5cfb9241cba30f4eebe43..15947cc26e18a292e85521c11eb6a48fbf270dec 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2018 The Linux Foundation and others.
@@ -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}"
@@ -34,27 +35,31 @@ cat > "$VIEWS_AR_YAML_FILE" << EOF
     filter-executors: false
     filter-queue: false
     columns:
-        - status
-        - weather
-        - job
-        - last-success
-        - last-failure
-        - last-duration
-        - build-button
+      - status
+      - weather
+      - job
+      - last-success
+      - last-failure
+      - last-duration
+      - build-button
+      - jacoco
+      - find-bugs
+      - robot-list
     recurse: false
 
 - view:
     name: Merge-${STREAM^}
-    description: 'List of ${STREAM^} Merge jobs for Autorelease'
+    description: "List of ${STREAM^} Merge jobs for Autorelease"
     job-name:
 EOF
 
 for module in "${modules[@]}"; do
     echo "Include project:$module to autorelease view"
-    echo "      - '$module-maven-merge-${STREAM}'" >> "$VIEWS_AR_YAML_FILE"
+    echo "      - \"$module-maven-merge-${STREAM}\"" >> "$VIEWS_AR_YAML_FILE"
 done
 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"