
* 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>
34 lines
920 B
Bash
Executable File
34 lines
920 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
source $(dirname "$0")/lib/job_utils.sh
|
|
|
|
load_build_env
|
|
|
|
#VERBOSE_ARG="--verbose"
|
|
|
|
mkdir -p "$BUILD_OUTPUT_HOME"
|
|
safe_copy_dir $DRY_RUN_ARG $VERBOSE_ARG \
|
|
--exclude /aptly \
|
|
--exclude /localdisk/channel/\*\* \
|
|
--exclude /localdisk/designer \
|
|
--exclude /mirrors \
|
|
--exclude /localdisk/lat \
|
|
"$BUILD_HOME/" "$BUILD_OUTPUT_HOME/"
|
|
|
|
# localdist/loadbuild/$USER
|
|
mkdir -p "$BUILD_OUTPUT_HOME/$(dirname "$REPO_ROOT_SUBDIR")"
|
|
|
|
# localdisk/designer/$USER/$PROJECT => $BUILD_HOME/...
|
|
ln -sfn "$BUILD_HOME/$REPO_ROOT_SUBDIR" "$BUILD_OUTPUT_HOME/$REPO_ROOT_SUBDIR"
|
|
|
|
# repo => localdisk/designer/$USER/$PROJECT
|
|
ln -sfn "$REPO_ROOT_SUBDIR" "$BUILD_OUTPUT_HOME/repo"
|
|
|
|
# workspace => localdist/loadbuild/$USER/PROJECT
|
|
ln -sfn "$WORKSPACE_ROOT_SUBDIR" "$BUILD_OUTPUT_HOME/workspace"
|
|
|
|
# aptly => $BUILD_HOME/...
|
|
ln -sfn "$BUILD_HOME/aptly" "$BUILD_OUTPUT_HOME/aptly"
|
|
|