
* moved lib/ => scripts/lib/ * moved pipelines/vars => vars/ * lib/job_utils.sh: protect /home/{localdisk,loadbuild} * lib/publish_utils.sh: don't copy xattrs when publishing * pipelines/monolithic.Jenkinsfile: print BUILD_OUTPUT_HOME_URL & PUBLISH_URL at the end * pipelines/parts/*.Jenkinsfile: add missing job parameters * scripts/00_junk: deleted unused directory * scripts/{build,archive}-helm-charts.sh: don't clobber helm charts output with multiple invocations * scripts/build-docker*.sh: omit --registry if not defined * scripts/docker-login.sh: - handle empty registry (ie docker.io) - fix $DOCKER_CONFIG_FILE being absolute * scripts/print-config.sh: - also print PUBLISH_URL * scripts/record-build-status.sh: - add missing function "same_path" Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
35 lines
787 B
Bash
Executable File
35 lines
787 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
source $(dirname "$0")/lib/job_utils.sh
|
|
|
|
load_build_env
|
|
|
|
LAT_SUBDIR="localdisk/deploy"
|
|
|
|
#VERBOSE_ARG="--verbose"
|
|
|
|
|
|
$BUILD_ISO || bail "BUILD_ISO=false, bailing out"
|
|
|
|
declare -a iso_files
|
|
mkdir -p "${BUILD_OUTPUT_HOME}/localdisk"
|
|
|
|
src_dir="${BUILD_HOME}/${LAT_SUBDIR}"
|
|
dst_dir="${BUILD_OUTPUT_HOME}/${LAT_SUBDIR}"
|
|
if [[ -d "${src_dir}" ]] ; then
|
|
notice "archving $src_dir"
|
|
mkdir -p "$dst_dir"
|
|
safe_copy_dir $DRY_RUN_ARG $VERBOSE_ARG "${src_dir}/" "${dst_dir}/"
|
|
if [[ -e "${dst_dir}/deploy" ]] ; then
|
|
iso_files+=($(find "${dst_dir}/deploy" -mindepth 1 -maxdepth 1 -type f))
|
|
fi
|
|
fi
|
|
|
|
if [[ "${#iso_files[@]}" -gt 0 ]] ; then
|
|
notice "changing file ownership to $USER"
|
|
safe_chown $DRY_RUN_ARG $VERBOSE_ARG "$USER:" "${iso_files[@]}"
|
|
fi
|
|
|
|
|