#!/bin/bash # # Copyright (c) 2022 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # set -e source $(dirname "$0")/lib/job_utils.sh require_job_env BUILD_STATUS load_build_env if $DRY_RUN ; then bail "DRY_RUN=true, bailing out..." fi set -x if [[ "$BUILD_STATUS" == "success" ]] ; then ln -sfn "$TIMESTAMP" "$BUILD_OUTPUT_ROOT/latest_iso_build" if [[ -d "$PUBLISH_ROOT/$PUBLISH_TIMESTAMP" ]] ; then if ! same_path "$BUILD_OUTPUT_ROOT" "$PUBLISH_ROOT" ; then ln -sfn "$PUBLISH_TIMESTAMP" "$PUBLISH_ROOT/latest_iso_build" fi fi fi