mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-16 08:01:59 +01:00
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
22 lines
741 B
Bash
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
|