Started by upstream project "STX_4.0_build_layer_all" build number 15
originally caused by:
Started by user Scott Little
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/STX_4.0_build_layer_compiler
No emails were triggered.
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Executing and processing the following script content:
export BRANCH=r/stx.4.0
export OPENSTACK_RELEASE=master
export LAYER=compiler
export MANIFEST=compiler.xml
export OS=centos
export OS_VERSION=7.5.1804
export BUILD_ISO=false
export PUBLISH_URL=http://mirror.starlingx.cengn.ca

export TIMESTAMP=$BUILD_TIMESTAMP
export MASTER_BUILD_NUMBER=$BUILD_NUMBER
export MASTER_JOB_NAME=$JOB_NAME
export DISTRO=$OS

export PUBLISH_BRANCH=""
export PUBLISH_TIMESTAMP=""
export MUNGED_BRANCH=$(echo $BRANCH | tr '/' '-')
export REPO_FILE=""

if [ "$BRANCH" == "master" ]; then
PUBLISH_BRANCH=$BRANCH
PUBLISH_TIMESTAMP=$TIMESTAMP
elif [[ $BRANCH == f/* ]]; then
# feature branch
PUBLISH_BRANCH=$(echo $BRANCH | sed 's#^f/#feature/#')
PUBLISH_TIMESTAMP=$TIMESTAMP
elif [[ $BRANCH == m/[0-9][0-9][0-9][0-9][.][0-9][0-9]* ]]; then
# milestone tag m/2018.10.b3
PUBLISH_BRANCH=$(echo $BRANCH | sed 's#^m/\([0-9][0-9][0-9][0-9][.][0-9][0-9]\).*#milestone/\1#')
PUBLISH_TIMESTAMP=$(echo $BRANCH | sed 's#^m/\([0-9][0-9][0-9][0-9][.][0-9][0-9]\)\([.][Bb][0-9]*\)$#\1\2#')
elif [[ $BRANCH == m[0-9][0-9][0-9][0-9][.][0-9][0-9]* ]]; then
# milestone tag m2018.10.b3
PUBLISH_BRANCH=$(echo $BRANCH | sed 's#^m\([0-9][0-9][0-9][0-9][.][0-9][0-9]\).*#milestone/\1#')
PUBLISH_TIMESTAMP=$(echo $BRANCH | sed 's#^m\([0-9][0-9][0-9][0-9][.][0-9][0-9]\)\([.][Bb][0-9]*\)$#\1\2#')
MUNGED_BRANCH=$(echo $BRANCH | sed 's#^m\([0-9][0-9][0-9][0-9][.][0-9][0-9]\)\([.][Bb][0-9]*\)$#m-\1\2#')
elif [[ $BRANCH == [0-9][0-9][0-9][0-9][.][0-9][0-9][.][Bb][0-9]* ]]; then
# milestone tag 2018.10.b3
PUBLISH_BRANCH=$(echo $BRANCH | sed 's#^\([0-9][0-9][0-9][0-9][.][0-9][0-9]\).*#milestone/\1#')
PUBLISH_TIMESTAMP=$(echo $BRANCH | sed 's#^\([0-9][0-9][0-9][0-9][.][0-9][0-9]\)\([.][Bb][0-9]*\)$#\1\2#')
MUNGED_BRANCH="m-$BRANCH"
elif [[ $BRANCH == r/stx[.]@([0-9])[.]@([0-9]) ]]; then
# release candidate branch r/stx.2.0
PUBLISH_BRANCH=$(echo $BRANCH | sed 's#^r/stx[.]\([0-9]*[.][0-9]*\).*$#rc/\1#')
PUBLISH_TIMESTAMP=$TIMESTAMP
MUNGED_BRANCH=$(echo $BRANCH | sed 's#^r/stx[.]#rc-#')
elif [[ $BRANCH == r/[0-9][0-9][0-9][0-9][.][0-9][0-9]* ]]; then
# release branch r/2018.10.5
PUBLISH_BRANCH=$(echo $BRANCH | sed 's#^r/\([0-9][0-9][0-9][0-9][.][0-9][0-9]\).*#release/\1#')
PUBLISH_TIMESTAMP=$(echo $BRANCH | sed 's#^r/\([0-9][0-9][0-9][0-9][.][0-9][0-9]\)\([.][0-9]*\)\{0,1\}$#\1\2#')
elif [[ $BRANCH == r[0-9][0-9][0-9][0-9][.]* ]]; then
# release branch r2018.10.5
PUBLISH_BRANCH=$(echo $BRANCH | sed 's#^r\([0-9][0-9][0-9][0-9][.][0-9][0-9]\).*#release/\1#')
PUBLISH_TIMESTAMP=$(echo $BRANCH | sed 's#^r\([0-9][0-9][0-9][0-9][.][0-9][0-9]\)\([.][0-9]*\)\{0,1\}$#\1\2#')
MUNGED_BRANCH=$(echo $BRANCH | sed 's#^r\([0-9][0-9][0-9][0-9][.][0-9][0-9]\)\([.][0-9]*\)\{0,1\}$#r-\1\2#')
elif [[ $BRANCH == [0-9][0-9][0-9][0-9][.][0-9][0-9] ]] || [[ $BRANCH == [0-9][0-9][0-9][0-9][.][0-9][0-9].[0-9]* ]] ; then
# Release branch 2018.10.1
PUBLISH_BRANCH=$(echo $BRANCH | sed 's#\([0-9][0-9][0-9][0-9][.][0-9][0-9]\).*#release/\1#')
PUBLISH_TIMESTAMP=$BRANCH
MUNGED_BRANCH="r-$BRANCH"
fi

if [ "$BRANCH" == "master" ]; then
REPO_FILE="StarlingX_cengn_${LAYER}_layer.repo"
else
REPO_FILE="StarlingX_cengn_${MUNGED_BRANCH}_${LAYER}_layer.repo"
fi

# Assertions, did we get a BRANCH we understand how to parse
[ -n "$PUBLISH_BRANCH" ]
[ -n "$PUBLISH_TIMESTAMP" ]

export PROJECT=$MUNGED_BRANCH-$LAYER

export MY_REPO_ROOT=/localdisk/designer/$USER/$PROJECT
export MY_REPO=$MY_REPO_ROOT/cgcs-root
export MY_WORKSPACE=/localdisk/loadbuild/$USER/$PROJECT/$TIMESTAMP

# if [ "$OS" == "centos" ] && [ -f $MY_REPO_ROOT/stx-tools/centos-mirror-tools/yum.conf.sample ] ; then
# export OS_VERSION=$( cd $MY_REPO_ROOT/stx-tools/centos-mirror-tools/;
# yum --config=./yum.conf.sample --showduplicates list centos-release | \
# grep '^centos-release' | awk '{print $2}' | sort --unique | \
# tail -n 1 | tr '-' '.' | cut -d '.' -f -3 )
# fi

export DOCKER_BUILD_ID=$USER-$PROJECT-$TIMESTAMP-builder
export DOCKER_BUILD_TAG=$PROJECT-$TIMESTAMP-builder-image

export PUBLISH_DISTRO_BASE=/export/mirror/starlingx/$PUBLISH_BRANCH/$DISTRO/$LAYER
export PUBLISH_BUILD_BASE=$PUBLISH_DISTRO_BASE/$PUBLISH_TIMESTAMP
export PUBLISH_INPUTS_BASE=$PUBLISH_BUILD_BASE/inputs
export PUBLISH_OUTPUTS_BASE=$PUBLISH_BUILD_BASE/outputs
export PUBLISH_LOGS_BASE=$PUBLISH_BUILD_BASE/logs
export PUBLISH_LOGS_URL=$PUBLISH_URL/$(echo $PUBLISH_LOGS_BASE | sed 's#^/export/##')

echo BUILD_CONTAINERS_DEV=$BUILD_CONTAINERS_DEV
echo BUILD_CONTAINERS_STABLE=$BUILD_CONTAINERS_STABLE

echo FORCE_BUILD=$FORCE_BUILD > env.properties
echo FULL_BUILD=$FULL_BUILD >> env.properties
echo TIMESTAMP=$TIMESTAMP >> env.properties
echo PUBLISH_TIMESTAMP=$PUBLISH_TIMESTAMP >> env.properties
echo BRANCH=$BRANCH >> env.properties
echo PROJECT=$PROJECT >> env.properties
echo MUNGED_BRANCH=$MUNGED_BRANCH >> env.properties
echo OPENSTACK_RELEASE=$OPENSTACK_RELEASE >> env.properties
echo LAYER=$LAYER >> env.properties
echo MANIFEST=$MANIFEST >> env.properties
echo DISTRO=$DISTRO >> env.properties
echo OS=$OS >> env.properties
echo OS_VERSION=$OS_VERSION >> env.properties
echo BUILD_ISO=$BUILD_ISO >> env.properties
echo MASTER_BUILD_NUMBER=$MASTER_BUILD_NUMBER >> env.properties
echo MASTER_JOB_NAME=$MASTER_JOB_NAME >> env.properties
echo MY_REPO_ROOT=$MY_REPO_ROOT >> env.properties
echo MY_REPO=$MY_REPO >> env.properties
echo MY_WORKSPACE=$MY_WORKSPACE >> env.properties
echo DOCKER_BUILD_ID=$DOCKER_BUILD_ID >> env.properties
echo DOCKER_BUILD_TAG=$DOCKER_BUILD_TAG >> env.properties
echo PUBLISH_DISTRO_BASE=$PUBLISH_DISTRO_BASE >> env.properties
echo PUBLISH_BUILD_BASE=$PUBLISH_BUILD_BASE >> env.properties
echo PUBLISH_INPUTS_BASE=$PUBLISH_INPUTS_BASE >> env.properties
echo PUBLISH_OUTPUTS_BASE=$PUBLISH_OUTPUTS_BASE >> env.properties
echo PUBLISH_LOGS_BASE=$PUBLISH_LOGS_BASE >> env.properties
echo PUBLISH_LOGS_URL=$PUBLISH_LOGS_URL >> env.properties
echo BUILD_NM=$JOB_NAME >> env.properties
echo BUILD_NUM=$BUILD_NUMBER >> env.properties
echo REPO_FILE=$REPO_FILE >> env.properties

[STX_4.0_build_layer_compiler] $ /bin/sh -xe /tmp/jenkins6474846401475321043.sh
+ export BRANCH=r/stx.4.0
+ BRANCH=r/stx.4.0
+ export OPENSTACK_RELEASE=master
+ OPENSTACK_RELEASE=master
+ export LAYER=compiler
+ LAYER=compiler
+ export MANIFEST=compiler.xml
+ MANIFEST=compiler.xml
+ export OS=centos
+ OS=centos
+ export OS_VERSION=7.5.1804
+ OS_VERSION=7.5.1804
+ export BUILD_ISO=false
+ BUILD_ISO=false
+ export PUBLISH_URL=http://mirror.starlingx.cengn.ca
+ PUBLISH_URL=http://mirror.starlingx.cengn.ca
+ export TIMESTAMP=20200805T031332Z
+ TIMESTAMP=20200805T031332Z
+ export MASTER_BUILD_NUMBER=20
+ MASTER_BUILD_NUMBER=20
+ export MASTER_JOB_NAME=STX_4.0_build_layer_compiler
+ MASTER_JOB_NAME=STX_4.0_build_layer_compiler
+ export DISTRO=centos
+ DISTRO=centos
+ export PUBLISH_BRANCH=
+ PUBLISH_BRANCH=
+ export PUBLISH_TIMESTAMP=
+ PUBLISH_TIMESTAMP=
++ echo r/stx.4.0
++ tr / -
+ export MUNGED_BRANCH=r-stx.4.0
+ MUNGED_BRANCH=r-stx.4.0
+ export REPO_FILE=
+ REPO_FILE=
+ '[' r/stx.4.0 == master ']'
+ [[ r/stx.4.0 == f/* ]]
+ [[ r/stx.4.0 == m/[0-9][0-9][0-9][0-9][.][0-9][0-9]* ]]
+ [[ r/stx.4.0 == m[0-9][0-9][0-9][0-9][.][0-9][0-9]* ]]
+ [[ r/stx.4.0 == [0-9][0-9][0-9][0-9][.][0-9][0-9][.][Bb][0-9]* ]]
+ [[ r/stx.4.0 == r/stx[.]@([0-9])[.]@([0-9]) ]]
++ echo r/stx.4.0
++ sed 's#^r/stx[.]\([0-9]*[.][0-9]*\).*$#rc/\1#'
+ PUBLISH_BRANCH=rc/4.0
+ PUBLISH_TIMESTAMP=20200805T031332Z
++ echo r/stx.4.0
++ sed 's#^r/stx[.]#rc-#'
+ MUNGED_BRANCH=rc-4.0
+ '[' r/stx.4.0 == master ']'
+ REPO_FILE=StarlingX_cengn_rc-4.0_compiler_layer.repo
+ '[' -n rc/4.0 ']'
+ '[' -n 20200805T031332Z ']'
+ export PROJECT=rc-4.0-compiler
+ PROJECT=rc-4.0-compiler
+ export MY_REPO_ROOT=/localdisk/designer/jenkins/rc-4.0-compiler
+ MY_REPO_ROOT=/localdisk/designer/jenkins/rc-4.0-compiler
+ export MY_REPO=/localdisk/designer/jenkins/rc-4.0-compiler/cgcs-root
+ MY_REPO=/localdisk/designer/jenkins/rc-4.0-compiler/cgcs-root
+ export MY_WORKSPACE=/localdisk/loadbuild/jenkins/rc-4.0-compiler/20200805T031332Z
+ MY_WORKSPACE=/localdisk/loadbuild/jenkins/rc-4.0-compiler/20200805T031332Z
+ export DOCKER_BUILD_ID=jenkins-rc-4.0-compiler-20200805T031332Z-builder
+ DOCKER_BUILD_ID=jenkins-rc-4.0-compiler-20200805T031332Z-builder
+ export DOCKER_BUILD_TAG=rc-4.0-compiler-20200805T031332Z-builder-image
+ DOCKER_BUILD_TAG=rc-4.0-compiler-20200805T031332Z-builder-image
+ export PUBLISH_DISTRO_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler
+ PUBLISH_DISTRO_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler
+ export PUBLISH_BUILD_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z
+ PUBLISH_BUILD_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z
+ export PUBLISH_INPUTS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/inputs
+ PUBLISH_INPUTS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/inputs
+ export PUBLISH_OUTPUTS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/outputs
+ PUBLISH_OUTPUTS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/outputs
+ export PUBLISH_LOGS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/logs
+ PUBLISH_LOGS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/logs
++ echo /export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/logs
++ sed 's#^/export/##'
+ export PUBLISH_LOGS_URL=http://mirror.starlingx.cengn.ca/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/logs
+ PUBLISH_LOGS_URL=http://mirror.starlingx.cengn.ca/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/logs
+ echo BUILD_CONTAINERS_DEV=
BUILD_CONTAINERS_DEV=
+ echo BUILD_CONTAINERS_STABLE=
BUILD_CONTAINERS_STABLE=
+ echo FORCE_BUILD=true
+ echo FULL_BUILD=false
+ echo TIMESTAMP=20200805T031332Z
+ echo PUBLISH_TIMESTAMP=20200805T031332Z
+ echo BRANCH=r/stx.4.0
+ echo PROJECT=rc-4.0-compiler
+ echo MUNGED_BRANCH=rc-4.0
+ echo OPENSTACK_RELEASE=master
+ echo LAYER=compiler
+ echo MANIFEST=compiler.xml
+ echo DISTRO=centos
+ echo OS=centos
+ echo OS_VERSION=7.5.1804
+ echo BUILD_ISO=false
+ echo MASTER_BUILD_NUMBER=20
+ echo MASTER_JOB_NAME=STX_4.0_build_layer_compiler
+ echo MY_REPO_ROOT=/localdisk/designer/jenkins/rc-4.0-compiler
+ echo MY_REPO=/localdisk/designer/jenkins/rc-4.0-compiler/cgcs-root
+ echo MY_WORKSPACE=/localdisk/loadbuild/jenkins/rc-4.0-compiler/20200805T031332Z
+ echo DOCKER_BUILD_ID=jenkins-rc-4.0-compiler-20200805T031332Z-builder
+ echo DOCKER_BUILD_TAG=rc-4.0-compiler-20200805T031332Z-builder-image
+ echo PUBLISH_DISTRO_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler
+ echo PUBLISH_BUILD_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z
+ echo PUBLISH_INPUTS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/inputs
+ echo PUBLISH_OUTPUTS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/outputs
+ echo PUBLISH_LOGS_BASE=/export/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/logs
+ echo PUBLISH_LOGS_URL=http://mirror.starlingx.cengn.ca/mirror/starlingx/rc/4.0/centos/compiler/20200805T031332Z/logs
+ echo BUILD_NM=STX_4.0_build_layer_compiler
+ echo BUILD_NUM=20
+ echo REPO_FILE=StarlingX_cengn_rc-4.0_compiler_layer.repo
[EnvInject] - Script executed successfully.
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties file path 'env.properties'
[EnvInject] - Variables injected successfully.
Waiting for the completion of mirror_download_sync
mirror_download_sync 3582 http:jenkins-mirror_download_sync-3582.log.html completed. Result was SUCCESS
Build step 'Trigger/call builds on other projects' changed build result to SUCCESS
Waiting for the completion of STX_repo_sync_layered
STX_repo_sync_layered 765 http:jenkins-STX_repo_sync_layered-765.log.html completed. Result was SUCCESS
Waiting for the completion of STX_change_log
STX_change_log 1561 http:jenkins-STX_change_log-1561.log.html completed. Result was SUCCESS
Waiting for the completion of STX_BUILD_container_setup_layered
STX_BUILD_container_setup_layered 752 http:jenkins-STX_BUILD_container_setup_layered-752.log.html completed. Result was SUCCESS
Waiting for the completion of STX_download_mirror_layered
STX_download_mirror_layered 780 http:jenkins-STX_download_mirror_layered-780.log.html completed. Result was SUCCESS
Waiting for the completion of STX_build_populate
STX_build_populate 682 http:jenkins-STX_build_populate-682.log.html completed. Result was SUCCESS
Waiting for the completion of STX_build_info_file
STX_build_info_file 1498 http:jenkins-STX_build_info_file-1498.log.html completed. Result was SUCCESS
Triggering projects: STX_build_lst_audit
Waiting for the completion of STX_build_pre_installer_layered
STX_build_pre_installer_layered 667 http:jenkins-STX_build_pre_installer_layered-667.log.html completed. Result was SUCCESS
Waiting for the completion of STX_last_commits
STX_last_commits 824 http:jenkins-STX_last_commits-824.log.html completed. Result was SUCCESS
Waiting for the completion of STX_publish
STX_publish 1432 http:jenkins-STX_publish-1432.log.html completed. Result was SUCCESS
No emails were triggered.
Triggering a new build of copy_logs
Triggering a new build of STX_BUILD_container_teardown
Triggering a new build of STX_delete_root_owned
Finished: SUCCESS