Michael Marineau 007b57e6e5 build_jobs: split minimal prefix out of job scripts
The chroot update/creation step must live in Jenkins but after that the
jobs can use these scripts. A template is provided in stub.sh
2016-10-26 10:52:46 -07:00

22 lines
741 B
Bash

#!/bin/bash
#
# This is the common job code to paste into Jenkins for everything except
# the manifest job. Update the exec line as appropriate.
set -ex
# build may not be started without a ref value
[[ -n "${MANIFEST_REF#refs/tags/}" ]]
# hack for catalyst jobs which may leave things chowned as root
#[[ -d .cache/sdks ]] && sudo chown -R $USER .cache/sdks
./bin/cork update --create --downgrade-replace --verify --verbose \
--manifest-url "${MANIFEST_URL}" \
--manifest-branch "${MANIFEST_REF}" \
--manifest-name "${MANIFEST_NAME}"
# add to packages job args which needs a full toolchain:
# -- --toolchain_boards=${BOARD}
exec ./src/scripts/build_jobs/00_job.sh