1#!/bin/bash 2# Set the SKIP_JOB environment variable if this job is not supposed to run on the current builder. 3 4set -euo pipefail 5IFS=$'\n\t' 6 7source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" 8 9if [[ -n "${CI_ONLY_WHEN_CHANNEL-}" ]]; then 10 if [[ "${CI_ONLY_WHEN_CHANNEL}" = "$(cat src/ci/channel)" ]]; then 11 echo "The channel is the expected one" 12 else 13 echo "Not executing this job as the channel is not the expected one" 14 ciCommandSetEnv SKIP_JOB 1 15 exit 0 16 fi 17fi 18 19 20echo "Executing the job since there is no skip rule preventing the execution" 21exit 0 22