-#!/bin/bash
+#!/bin/sh
# make sure we don't require tty for sudo operations
cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
# Do the final install of OVS that the has to be done at boot time for
# some reason due to how the snapshots keep behaving.
-dpkg --install /root/openvswitch-datapath-dkms* && \
-dpkg --install /root/openvswitch-{common,switch}*
+dpkg --install /root/openvswitch-datapath-dkms* /root/openvswitch-common* /root/openvswitch-switch*
# add user jenkins to docker group
/usr/sbin/usermod -a -G docker jenkins
-#!/bin/bash
-if [ "$GERRIT_BRANCH" == "master" ]; then
+#!/bin/sh
+if [ "$GERRIT_BRANCH" = "master" ]; then
RTD_BUILD_VERSION=latest
else
- RTD_BUILD_VERSION="${{GERRIT_BRANCH/\//-}}"
+ RTD_BUILD_VERSION=$(echo $GERRIT_BRANCH | sed 's@/@-@g')
fi
# shellcheck disable=SC1083
-#!/bin/bash
+#!/bin/sh
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
python3 -m venv "/tmp/v/jenkins"
# shellcheck source=/tmp/v/jenkins/bin/activate disable=SC1091
-source "/tmp/v/jenkins/bin/activate"
+. "/tmp/v/jenkins/bin/activate"
# Remove pip cache to avoid cache entry deserialization failures
rm -rf ~/.cache/pip/
pip install --quiet --upgrade pip setuptools
-#!/bin/bash -l
+#!/bin/sh -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2015 The Linux Foundation and others.
# to install into the image.
python3 -m venv "${ROBOT_VENV}"
# shellcheck disable=SC1090
-source "${ROBOT_VENV}/bin/activate"
+. "${ROBOT_VENV}/bin/activate"
set -exu
-#!/bin/bash
+#!/bin/sh
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2018 Red Hat, Inc. and others.
virtualenv --quiet "/tmp/v/odltools"
# shellcheck disable=SC1091
-source /tmp/v/odltools/bin/activate
+. /tmp/v/odltools/bin/activate
pip install odltools
mkdir "$REPORT_PATH"
python -m odltools csit reports --numjobs "$NUM_JOBS" --path "$REPORT_PATH" --url "$LOG_URL" --jobnames "$JOB_NAMES" || true
-#!/bin/bash
+#!/bin/sh
# Script to rename Jenkins jobs by searching and replacing a string with a new
# string.
grep "$search_string")
for job in $(echo "$jobs" | tr "\n" " "); do
- new_job="${job//$search_string/$replace_string}"
+ new_job=$(echo $job | sed "s@$search_string@$replace_string@g")
echo "Renaming $job to $new_job"
#curl --data "newName=${new_job}" "https://$username:
[email protected]/$system/job/${job}/doRename"
done