jenkins-pipelines/scripts/archive-docker-images.sh
Davlet Panech 8014360154 Rename env function to avoid conflicts
lib/job_utils.sh: function "require_env" conflicts with the like-named
function in utils.sh. Rename it to "require_job_env".

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I557cf14c4a3df000be245471cef5663e49badb06
2022-09-02 14:11:28 -04:00

29 lines
603 B
Bash
Executable File

#!/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_STREAM
load_build_env
#VERBOSE_ARG="--verbose"
mkdir -p "$BUILD_OUTPUT_HOME"
if [[ -d "$BUILD_HOME/$WORKSPACE_ROOT_SUBDIR/std/build-images" ]] ; then
mkdir -p "$BUILD_OUTPUT_HOME/$WORKSPACE_ROOT_SUBDIR/std"
ln -sfn "$WORKSPACE_ROOT_SUBDIR" "$BUILD_OUTPUT_HOME/workspace"
safe_copy_dir $DRY_RUN_ARG $VERBOSE_ARG \
"$BUILD_HOME/workspace/std/build-images" \
"$BUILD_OUTPUT_HOME/workspace/std/"
fi