blob: 6c0b3db3205b63cb257eb155b1bd3be52bb3f09e [file] [log] [blame]
Alanny Lopez56fc36a2017-07-27 13:55:44 -05001#!/bin/bash
Alanny Lopezb0a12dd2017-04-24 16:21:47 -05002###############################################################################
Chris Smart02651712015-11-11 11:09:00 +11003#
Alanny Lopezb0a12dd2017-04-24 16:21:47 -05004# This build script is for running the OpenBMC builds as containers with the
5# option of launching the containers with Docker or Kubernetes.
Alanny Lopez3fbaa512017-04-24 15:46:52 -05006#
Alanny Lopezb0a12dd2017-04-24 16:21:47 -05007###############################################################################
8#
Alanny Lopeze08e8702018-02-24 18:07:13 -06009# Script Variables:
10# build_scripts_dir The path of the openbmc-build-scripts directory.
11# Default: The directory containing this script
12# http_proxy The HTTP address of the proxy server to connect to.
13# Default: "", proxy is not setup if this is not set
14# WORKSPACE Path of the workspace directory where some intermediate
15# files and the images will be saved to.
16# Default: "~/{RandomNumber}"
Andrew Geisslerdc1e7022018-03-26 07:54:48 -070017# num_cpu Number of cpu's to give bitbake, default is total amount
18# in system
Alanny Lopezb0a12dd2017-04-24 16:21:47 -050019#
Alanny Lopeze08e8702018-02-24 18:07:13 -060020# Docker Image Build Variables:
Alanny Lopez1246b032018-02-24 23:34:55 -060021# BITBAKE_OPTS Set to "-c populate_sdk" or whatever other BitBake options
Alanny Lopeze08e8702018-02-24 18:07:13 -060022# you'd like to pass into the build.
23# Default: "", no options set
Alanny Lopez1246b032018-02-24 23:34:55 -060024# build_dir Path where the actual BitBake build occurs inside the
Alanny Lopeze08e8702018-02-24 18:07:13 -060025# container, path cannot be located on network storage.
26# Default: "/tmp/openbmc"
27# distro The distro used as the base image for the build image:
28# fedora|ubuntu
29# Default: "ubuntu"
Alanny Lopez1246b032018-02-24 23:34:55 -060030# img_name The name given to the target build's docker image.
Alanny Lopeze08e8702018-02-24 18:07:13 -060031# Default: "openbmc/${distro}:${imgtag}-${target}-${ARCH}"
Alanny Lopez1246b032018-02-24 23:34:55 -060032# img_tag The base docker image distro tag:
Alanny Lopeze08e8702018-02-24 18:07:13 -060033# ubuntu: latest|16.04|14.04|trusty|xenial
34# fedora: 23|24|25
35# Default: "latest"
36# target The target we aim to build:
Brad Bishop7161a172018-10-05 16:48:06 -040037# evb-ast2500|palmetto|qemu
Ed Tanous6dc40d92018-07-30 11:13:36 -070038# romulus|s2600wf|witherspoon|zaius
Alanny Lopeze08e8702018-02-24 18:07:13 -060039# Default: "qemu"
Alanny Lopez723fea62017-09-12 11:22:17 -050040#
Alanny Lopeze08e8702018-02-24 18:07:13 -060041# Deployment Variables:
Alanny Lopeze08e8702018-02-24 18:07:13 -060042# launch ""|job|pod
43# Can be left blank to launch the container via Docker
44# Job lets you keep a copy of job and container logs on the
45# api, can be useful if not using Jenkins as you can run the
46# job again via the api without needing this script.
47# Pod launches a container which runs to completion without
48# saving anything to the api when it completes.
Alanny Lopez1246b032018-02-24 23:34:55 -060049# obmc_dir Path of the OpenBMC repo directory used as a reference
Alanny Lopeze08e8702018-02-24 18:07:13 -060050# for the build inside the container.
51# Default: "${WORKSPACE}/openbmc"
Alanny Lopez1246b032018-02-24 23:34:55 -060052# ssc_dir Path to use as the BitBake shared-state cache directory.
Alanny Lopeze08e8702018-02-24 18:07:13 -060053# Default: "/home/${USER}"
Charles Paul Hoferb249c2c2018-09-12 12:15:13 -050054# xtrct_small_copy_dir
55# Directory within build_dir that should be copied to
56# xtrct_path. The directory and all parents up to, but not
57# including, build_dir will be copied. For example, if
58# build_dir is set to "/tmp/openbmc" and this is set to
59# "build/tmp", the directory at xtrct_path will have the
60# following directory structure:
61# xtrct_path
62# | - build
63# | - tmp
64# ...
65# Can also be set to the empty string to copy the entire
66# contents of build_dir to xtrct_path.
67# Default: "deploy/images".
Alanny Lopez1246b032018-02-24 23:34:55 -060068# xtrct_path Path where the build_dir contents will be copied out to
69# when the build completes.
70# Default: "${obmc_dir}/build/tmp"
Charles Paul Hoferbe8700e2018-09-05 09:28:08 -050071# xtrct_copy_timeout Timeout (in seconds) for copying the contents of
72# build_dir to xtrct_path.
73# Default: "300"
Alanny Lopezb0a12dd2017-04-24 16:21:47 -050074#
75###############################################################################
Joel Stanley4b8b2392016-02-12 15:44:57 +103076# Trace bash processing. Set -e so when a step fails, we fail the build
Joel Stanley38c9d142016-02-16 12:31:55 +103077set -xeo pipefail
Chris Smart02651712015-11-11 11:09:00 +110078
Alanny Lopez46967702018-02-25 00:29:14 -060079# Script Variables:
80build_scripts_dir=${build_scripts_dir:-"$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"}
81http_proxy=${http_proxy:-}
82WORKSPACE=${WORKSPACE:-${HOME}/${RANDOM}${RANDOM}}
Andrew Geisslerdc1e7022018-03-26 07:54:48 -070083num_cpu=${num_cpu:-$(nproc)}
Alanny Lopez46967702018-02-25 00:29:14 -060084
85# Docker Image Build Variables:
86build_dir=${build_dir:-/tmp/openbmc}
Chris Smart02651712015-11-11 11:09:00 +110087distro=${distro:-ubuntu}
Alanny Lopez1246b032018-02-24 23:34:55 -060088img_tag=${img_tag:-latest}
Alanny Lopez46967702018-02-25 00:29:14 -060089target=${target:-qemu}
90
91# Deployment variables
Alanny Lopez3fbaa512017-04-24 15:46:52 -050092launch=${launch:-}
Alanny Lopez46967702018-02-25 00:29:14 -060093obmc_dir=${obmc_dir:-${WORKSPACE}/openbmc}
94ssc_dir=${ssc_dir:-${HOME}}
Charles Paul Hoferb249c2c2018-09-12 12:15:13 -050095xtrct_small_copy_dir=${xtrct_small_copy_dir:-deploy/images}
Alanny Lopez46967702018-02-25 00:29:14 -060096xtrct_path=${xtrct_path:-${obmc_dir}/build/tmp}
Charles Paul Hoferbe8700e2018-09-05 09:28:08 -050097xtrct_copy_timeout=${xtrct_copy_timeout:-300}
Alanny Lopez46967702018-02-25 00:29:14 -060098
Chris Smartc3522542016-02-16 11:59:36 +110099PROXY=""
Chris Smart02651712015-11-11 11:09:00 +1100100
Alanny Lopezccc650e2017-04-24 15:14:20 -0500101# Determine the architecture
102ARCH=$(uname -m)
103
104# Determine the prefix of the Dockerfile's base image
105case ${ARCH} in
106 "ppc64le")
107 DOCKER_BASE="ppc64le/"
108 ;;
109 "x86_64")
110 DOCKER_BASE=""
111 ;;
112 *)
113 echo "Unsupported system architecture(${ARCH}) found for docker image"
114 exit 1
115esac
Andrew Geissler11abbbe2016-08-14 19:39:47 -0500116
Chris Smart02651712015-11-11 11:09:00 +1100117# Timestamp for job
118echo "Build started, $(date)"
119
Alanny Lopez1246b032018-02-24 23:34:55 -0600120# If the obmc_dir directory doesn't exist clone it in
121if [ ! -d ${obmc_dir} ]; then
122 echo "Clone in openbmc master to ${obmc_dir}"
123 git clone https://github.com/openbmc/openbmc ${obmc_dir}
Andrew Geisslerc3c35202016-08-16 08:47:50 -0500124fi
125
Alanny Lopez1246b032018-02-24 23:34:55 -0600126# Make and chown the xtrct_path directory to avoid permission errors
127if [ ! -d ${xtrct_path} ]; then
128 mkdir -p ${xtrct_path}
Alanny Lopez723fea62017-09-12 11:22:17 -0500129fi
Alanny Lopez1246b032018-02-24 23:34:55 -0600130chown ${UID}:${GROUPS} ${xtrct_path}
Alanny Lopez723fea62017-09-12 11:22:17 -0500131
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500132# Work out what build target we should be running and set BitBake command
Chris Smart02651712015-11-11 11:09:00 +1100133case ${target} in
Chris Smart02651712015-11-11 11:09:00 +1100134 palmetto)
Brad Bishop7161a172018-10-05 16:48:06 -0400135 LAYER_DIR="meta-ibm/meta-palmetto"
Chris Smart02651712015-11-11 11:09:00 +1100136 ;;
Joel Stanley0e077202016-06-28 16:42:45 +0930137 witherspoon)
Brad Bishop7161a172018-10-05 16:48:06 -0400138 LAYER_DIR="meta-ibm/meta-witherspoon"
Joel Stanley0e077202016-06-28 16:42:45 +0930139 ;;
Joel Stanley0e077202016-06-28 16:42:45 +0930140 evb-ast2500)
Brad Bishop7161a172018-10-05 16:48:06 -0400141 LAYER_DIR="meta-evb/meta-evb-aspeed/meta-evb-ast2500"
Joel Stanley0e077202016-06-28 16:42:45 +0930142 ;;
Ed Tanous6dc40d92018-07-30 11:13:36 -0700143 s2600wf)
Brad Bishop7161a172018-10-05 16:48:06 -0400144 LAYER_DIR="meta-intel/meta-s2600wf"
Ed Tanous6dc40d92018-07-30 11:13:36 -0700145 ;;
Joel Stanley915381f2016-11-01 16:58:59 +1030146 zaius)
Brad Bishop7161a172018-10-05 16:48:06 -0400147 LAYER_DIR="meta-ingrasys/meta-zaius"
Joel Stanley915381f2016-11-01 16:58:59 +1030148 ;;
149 romulus)
Brad Bishop7161a172018-10-05 16:48:06 -0400150 LAYER_DIR="meta-ibm/meta-romulus"
Joel Stanley915381f2016-11-01 16:58:59 +1030151 ;;
Chris Smart02651712015-11-11 11:09:00 +1100152 qemu)
Brad Bishop7161a172018-10-05 16:48:06 -0400153 LAYER_DIR="meta-phosphor"
Chris Smart02651712015-11-11 11:09:00 +1100154 ;;
155 *)
156 exit 1
157 ;;
158esac
159
Brad Bishop7161a172018-10-05 16:48:06 -0400160BITBAKE_CMD="TEMPLATECONF=${LAYER_DIR}/conf source oe-init-build-env"
161
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500162# Configure Docker build
Chris Smart02651712015-11-11 11:09:00 +1100163if [[ "${distro}" == fedora ]];then
164
165 if [[ -n "${http_proxy}" ]]; then
166 PROXY="RUN echo \"proxy=${http_proxy}\" >> /etc/dnf/dnf.conf"
167 fi
168
169 Dockerfile=$(cat << EOF
Alanny Lopez1246b032018-02-24 23:34:55 -0600170 FROM ${DOCKER_BASE}${distro}:${img_tag}
Chris Smart02651712015-11-11 11:09:00 +1100171
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500172 ${PROXY}
Chris Smart02651712015-11-11 11:09:00 +1100173
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500174 # Set the locale
175 RUN locale-gen en_US.UTF-8
176 ENV LANG en_US.UTF-8
177 ENV LANGUAGE en_US:en
178 ENV LC_ALL en_US.UTF-8
Saqib Khan75635122017-03-23 10:57:34 -0500179
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500180 RUN dnf --refresh install -y \
181 bzip2 \
182 chrpath \
183 cpio \
184 diffstat \
185 findutils \
186 gcc \
187 gcc-c++ \
188 git \
189 make \
190 patch \
191 perl-bignum \
192 perl-Data-Dumper \
193 perl-Thread-Queue \
194 python-devel \
195 python3-devel \
196 SDL-devel \
197 socat \
198 subversion \
199 tar \
200 texinfo \
201 wget \
Saqib Khan5158a322017-10-23 11:31:24 -0500202 which \
203 iputils-ping
Chris Smart02651712015-11-11 11:09:00 +1100204
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500205 RUN grep -q ${GROUPS} /etc/group || groupadd -g ${GROUPS} ${USER}
206 RUN grep -q ${UID} /etc/passwd || useradd -d ${HOME} -m -u ${UID} -g ${GROUPS} ${USER}
Chris Smart02651712015-11-11 11:09:00 +1100207
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500208 USER ${USER}
209 ENV HOME ${HOME}
210 RUN /bin/bash
Chris Smart02651712015-11-11 11:09:00 +1100211EOF
212)
213
Alanny Lopezccc650e2017-04-24 15:14:20 -0500214elif [[ "${distro}" == ubuntu ]]; then
215
Chris Smart02651712015-11-11 11:09:00 +1100216 if [[ -n "${http_proxy}" ]]; then
217 PROXY="RUN echo \"Acquire::http::Proxy \\"\"${http_proxy}/\\"\";\" > /etc/apt/apt.conf.d/000apt-cacher-ng-proxy"
218 fi
219
220 Dockerfile=$(cat << EOF
Alanny Lopez1246b032018-02-24 23:34:55 -0600221 FROM ${DOCKER_BASE}${distro}:${img_tag}
Chris Smart02651712015-11-11 11:09:00 +1100222
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500223 ${PROXY}
Chris Smart02651712015-11-11 11:09:00 +1100224
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500225 ENV DEBIAN_FRONTEND noninteractive
Saqib Khan75635122017-03-23 10:57:34 -0500226
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500227 RUN apt-get update && apt-get install -yy \
228 build-essential \
229 chrpath \
230 debianutils \
231 diffstat \
232 gawk \
233 git \
234 libdata-dumper-simple-perl \
235 libsdl1.2-dev \
236 libthread-queue-any-perl \
Alanny Lopez27af3a02017-05-26 10:49:06 -0500237 locales \
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500238 python \
239 python3 \
240 socat \
241 subversion \
242 texinfo \
243 cpio \
Saqib Khan5158a322017-10-23 11:31:24 -0500244 wget \
245 iputils-ping
Chris Smart02651712015-11-11 11:09:00 +1100246
Alanny Lopez27af3a02017-05-26 10:49:06 -0500247 # Set the locale
248 RUN locale-gen en_US.UTF-8
249 ENV LANG en_US.UTF-8
250 ENV LANGUAGE en_US:en
251 ENV LC_ALL en_US.UTF-8
252
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500253 RUN grep -q ${GROUPS} /etc/group || groupadd -g ${GROUPS} ${USER}
254 RUN grep -q ${UID} /etc/passwd || useradd -d ${HOME} -m -u ${UID} -g ${GROUPS} ${USER}
Chris Smartd30c5902016-03-01 15:00:54 +1100255
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500256 USER ${USER}
257 ENV HOME ${HOME}
258 RUN /bin/bash
Chris Smart02651712015-11-11 11:09:00 +1100259EOF
260)
261fi
262
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500263# Create the Docker run script
Chris Smart02651712015-11-11 11:09:00 +1100264export PROXY_HOST=${http_proxy/#http*:\/\/}
265export PROXY_HOST=${PROXY_HOST/%:[0-9]*}
266export PROXY_PORT=${http_proxy/#http*:\/\/*:}
267
Chris Smart01d2b962015-11-11 18:05:30 +1100268mkdir -p ${WORKSPACE}
Chris Smart02651712015-11-11 11:09:00 +1100269
Chris Smart01d2b962015-11-11 18:05:30 +1100270cat > "${WORKSPACE}"/build.sh << EOF_SCRIPT
Chris Smart02651712015-11-11 11:09:00 +1100271#!/bin/bash
272
Joel Stanley38c9d142016-02-16 12:31:55 +1030273set -xeo pipefail
Chris Smart02651712015-11-11 11:09:00 +1100274
Alanny Lopez723fea62017-09-12 11:22:17 -0500275# Go into the OpenBMC directory, the build will handle changing directories
Alanny Lopez1246b032018-02-24 23:34:55 -0600276cd ${obmc_dir}
Chris Smart02651712015-11-11 11:09:00 +1100277
278# Set up proxies
279export ftp_proxy=${http_proxy}
280export http_proxy=${http_proxy}
281export https_proxy=${http_proxy}
282
Chris Smart01d2b962015-11-11 18:05:30 +1100283mkdir -p ${WORKSPACE}/bin
Chris Smart02651712015-11-11 11:09:00 +1100284
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500285# Configure proxies for BitBake
Chris Smart02651712015-11-11 11:09:00 +1100286if [[ -n "${http_proxy}" ]]; then
287
Chris Smartd30c5902016-03-01 15:00:54 +1100288 cat > ${WORKSPACE}/bin/git-proxy << \EOF_GIT
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500289 #!/bin/bash
290 # \$1 = hostname, \$2 = port
291 PROXY=${PROXY_HOST}
292 PROXY_PORT=${PROXY_PORT}
293 exec socat STDIO PROXY:\${PROXY}:\${1}:\${2},proxyport=\${PROXY_PORT}
Chris Smart02651712015-11-11 11:09:00 +1100294EOF_GIT
295
Chris Smart01d2b962015-11-11 18:05:30 +1100296 chmod a+x ${WORKSPACE}/bin/git-proxy
297 export PATH=${WORKSPACE}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH}
Chris Smart02651712015-11-11 11:09:00 +1100298 git config core.gitProxy git-proxy
299
300 mkdir -p ~/.subversion
301
302 cat > ~/.subversion/servers << EOF_SVN
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500303 [global]
304 http-proxy-host = ${PROXY_HOST}
305 http-proxy-port = ${PROXY_PORT}
Chris Smart02651712015-11-11 11:09:00 +1100306EOF_SVN
307fi
308
309# Source our build env
310${BITBAKE_CMD}
311
Alanny Lopezeaa2eae2017-04-24 14:55:07 -0500312# Custom BitBake config settings
Chris Smart02651712015-11-11 11:09:00 +1100313cat >> conf/local.conf << EOF_CONF
Chris Smartc650c202015-11-25 15:58:53 +1100314BB_NUMBER_THREADS = "$(nproc)"
315PARALLEL_MAKE = "-j$(nproc)"
Chris Smart02651712015-11-11 11:09:00 +1100316INHERIT += "rm_work"
317BB_GENERATE_MIRROR_TARBALLS = "1"
Alanny Lopez1246b032018-02-24 23:34:55 -0600318DL_DIR="${ssc_dir}/bitbake_downloads"
319SSTATE_DIR="${ssc_dir}/bitbake_sharedstatecache"
Chris Smart02651712015-11-11 11:09:00 +1100320USER_CLASSES += "buildstats"
Andrew Geissler931ec672016-08-11 13:10:05 -0500321INHERIT_remove = "uninative"
Alanny Lopez1246b032018-02-24 23:34:55 -0600322TMPDIR="${build_dir}"
Chris Smart02651712015-11-11 11:09:00 +1100323EOF_CONF
324
325# Kick off a build
Andrew Geissler496a6b02016-10-03 10:04:49 -0500326bitbake ${BITBAKE_OPTS} obmc-phosphor-image
Chris Smart02651712015-11-11 11:09:00 +1100327
Alanny Lopez1246b032018-02-24 23:34:55 -0600328# Copy internal build directory into xtrct_path directory
Charles Paul Hoferb249c2c2018-09-12 12:15:13 -0500329if [[ ${xtrct_small_copy_dir} ]]; then
330 mkdir -p ${xtrct_path}/${xtrct_small_copy_dir}
331 timeout ${xtrct_copy_timeout} cp -r ${build_dir}/${xtrct_small_copy_dir}/* ${xtrct_path}/${xtrct_small_copy_dir}
332else
333 timeout ${xtrct_copy_timeout} cp -r ${build_dir}/* ${xtrct_path}
334fi
Charles Paul Hoferbe8700e2018-09-05 09:28:08 -0500335
336if [[ 0 -ne $? ]]; then
337 echo "Received a non-zero exit code from timeout"
338 exit 1
339fi
340
Chris Smart02651712015-11-11 11:09:00 +1100341EOF_SCRIPT
342
343chmod a+x ${WORKSPACE}/build.sh
344
Alanny Lopez51186882017-08-01 16:14:41 -0500345# Give the Docker image a name based on the distro,tag,arch,and target
Alanny Lopez1246b032018-02-24 23:34:55 -0600346img_name=${img_name:-openbmc/${distro}:${img_tag}-${target}-${ARCH}}
Alanny Lopez51186882017-08-01 16:14:41 -0500347
348# Build the Docker image
Alanny Lopez1246b032018-02-24 23:34:55 -0600349docker build -t ${img_name} - <<< "${Dockerfile}"
Alanny Lopez51186882017-08-01 16:14:41 -0500350
Alanny Lopez3fbaa512017-04-24 15:46:52 -0500351# Determine if the build container will be launched with Docker or Kubernetes
352if [[ "${launch}" == "" ]]; then
353
Alanny Lopez1246b032018-02-24 23:34:55 -0600354 # If obmc_dir or ssc_dir are ${HOME} or a subdirectory they will not be mounted
355 mount_obmc_dir="-v ""${obmc_dir}"":""${obmc_dir}"" "
356 mount_ssc_dir="-v ""${ssc_dir}"":""${ssc_dir}"" "
357 if [[ "${obmc_dir}" = "${HOME}/"* || "${obmc_dir}" = "${HOME}" ]];then
358 mount_obmc_dir=""
Alanny Lopez97a79502017-04-24 16:19:25 -0500359 fi
Alanny Lopez1246b032018-02-24 23:34:55 -0600360 if [[ "${ssc_dir}" = "${HOME}/"* || "${ssc_dir}" = "${HOME}" ]];then
361 mount_ssc_dir=""
Alanny Lopez97a79502017-04-24 16:19:25 -0500362 fi
363
Alanny Lopez3fbaa512017-04-24 15:46:52 -0500364 # Run the Docker container, execute the build.sh script
365 docker run \
366 --cap-add=sys_admin \
367 --net=host \
368 --rm=true \
369 -e WORKSPACE=${WORKSPACE} \
370 -w "${HOME}" \
371 -v "${HOME}":"${HOME}" \
Alanny Lopez1246b032018-02-24 23:34:55 -0600372 ${mount_obmc_dir} \
373 ${mount_ssc_dir} \
Andrew Geisslerdc1e7022018-03-26 07:54:48 -0700374 --cpus="$num_cpu" \
Alanny Lopez1246b032018-02-24 23:34:55 -0600375 -t ${img_name} \
Alanny Lopez3fbaa512017-04-24 15:46:52 -0500376 ${WORKSPACE}/build.sh
377
378elif [[ "${launch}" == "job" || "${launch}" == "pod" ]]; then
379
380 # Source and run the helper script to launch the pod or job
Alanny Lopeze08e8702018-02-24 18:07:13 -0600381 . ${build_scripts_dir}/kubernetes/kubernetes-launch.sh OpenBMC-build true true
Alanny Lopez3fbaa512017-04-24 15:46:52 -0500382
383else
384 echo "Launch Parameter is invalid"
385fi
Chris Smart02651712015-11-11 11:09:00 +1100386
Alanny Lopezd32d3322017-07-18 15:21:39 -0500387# To maintain function of resources that used an older path, add a link
Alanny Lopez1246b032018-02-24 23:34:55 -0600388ln -sf ${xtrct_path}/deploy ${WORKSPACE}/deploy
Alanny Lopezd32d3322017-07-18 15:21:39 -0500389
Chris Smart02651712015-11-11 11:09:00 +1100390# Timestamp for build
Alanny Lopez0e8ad992017-06-19 15:45:23 -0500391echo "Build completed, $(date)"