Commit df7f54f6 authored by Emanuele Aina's avatar Emanuele Aina

sysroot: Upload to the same folder as the other artifacts

Storing the sysroot artifacts with the others will make it easier to prevent
inconsistencies due to image rotations and other factors.

The metadata file pointing to the latest version is kept in the current
location as expected by `ade`, and contains the updated URL pointing to the
actual tarball.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <>
parent 947600d0
Pipeline #3053 passed with stage
in 2 minutes and 47 seconds
......@@ -366,22 +366,21 @@ def buildOStreeImage(architecture, type, board, debosarguments = "") {
def buildSysroot(architecture, type, debosarguments = "") {
sysrootname = "sysroot-${osname}-${release}-${architecture}-${env.PIPELINE_VERSION}"
sysrooturl = "${image_url_prefix}/daily/${release}/${env.PIPELINE_VERSION}/${architecture}/sysroot/${sysrootname}.tar.gz"
stage("${architecture} sysroot tarball") {
sh(script: """
mkdir -p sysroot/${release}
cd sysroot/${release}
cp -l ${WORKSPACE}/${PIPELINE_VERSION}/${architecture}/${type}/ospack_${release}-${architecture}-${type}_${PIPELINE_VERSION}.tar.gz .
cd ${PIPELINE_VERSION}/${architecture}/${type}
debos ${debosarguments} \
--show-boot \
-t architecture:${architecture} \
-t ospack:ospack_${release}-${architecture}-${type}_${PIPELINE_VERSION} \
-t sysroot:${sysrootname} \
${WORKSPACE}/${osname}-sysroot.yaml; \
rm ospack*""")
// Generate sysroot metadata
def metadata_file = "sysroot/${release}/sysroot-${osname}-${release}-${architecture}"
def metadata_contents = "version=${release} ${PIPELINE_VERSION}\nurl=${sysroot_url_prefix}${release}/${sysrootname}.tar.gz\n"
def metadata_contents = "version=${release} ${PIPELINE_VERSION}\nurl=${sysrooturl}\n"
echo "sysroot ${metadata_file}\n${metadata_contents}"
writeFile file: metadata_file, text: metadata_contents
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment