jenkins-pipelines/scripts/archive-remote-cli.sh
Davlet Panech 1c1371cc5a Add step for building stx-remote-cli tarball
This step was missed when we created these scripts for Debian.

Story: 2010226
Task: 48670

Change-Id: I73f90b5a018fc32b39ab6d265acfbbb7fc275415
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2023-08-24 16:51:09 -04:00

27 lines
485 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
load_build_env
src_dir="$WORKSPACE_ROOT/std/build-remote-cli"
dst_dir="$BUILD_OUTPUT_HOME/workspace/std/build-remote-cli"
notice "copying remote-cli files to $dst_dir"
if [[ -d "$dst_dir" ]] ; then
maybe_run rm -rf --one-file-system "$dst_dir"
fi
if [[ -d "$src_dir" ]] ; then
maybe_run cp -arv "$src_dir" "$dst_dir"
fi