Skip to content
Snippets Groups Projects
Commit f8d8ec3b authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Jenkinsfile: enable OSTree Collection ID


Add Collection ID and binding refs for OSTree-based artifacts:
- commits
- images
- test delta

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 2a7a38be
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !78. Comments created here will be created in the context of that merge request.
......@@ -3,6 +3,7 @@
env.PIPELINE_VERSION = VersionNumber(versionNumberString: '${BUILD_DATE_FORMATTED,"yyyyMMdd"}.${BUILDS_TODAY_Z}')
osname = 'apertis'
collection_id = "org.apertis.os"
release = "v2019dev0"
......@@ -242,6 +243,7 @@ def buildOStree(architecture, type, board, debosarguments = "", repo = "repo") {
-t image:${image_name} \
-t message:${release}-${type}-${architecture}-${board}_${PIPELINE_VERSION} \
-t ostree:${repo} \
-t collection_id:${collection_id} \
${WORKSPACE}/${osname}-ostree-commit.yaml""")
sh(script: """
......@@ -265,6 +267,8 @@ def buildOStreeRollbackDelta(architecture, type, board, debosarguments = "", rep
ostree --repo=${repo} commit \
--tree=ref=${branch} \
--branch=${rollback_branch} \
--add-metadata-string=ostree.collection-binding=${collection_id} \
--bind-ref=${branch} \
--skip-list="skip_list"
mkdir -p tests
ostree --repo=${repo} static-delta generate \
......@@ -344,6 +348,7 @@ def buildOStreeImage(architecture, type, board, debosarguments = "") {
-t image:${image_name} \
-t message:${release}-${type}-${architecture}-${board}_${PIPELINE_VERSION} \
-t ostree:${repo} \
-t collection_id:${collection_id} \
${WORKSPACE}/apertis-ostree-image-${board}.yaml;""")
}
}
......@@ -366,6 +371,7 @@ def buildContainer(architecture, type, board, debosarguments = "") {
-t ospack:${osname}_ostree_${release}-${type}-${architecture}-${board}_${PIPELINE_VERSION} \
-t message:${release}-${type}-${architecture}-${type}-${board}_${PIPELINE_VERSION} \
-t ostree:${repo} \
-t collection_id:${collection_id} \
${WORKSPACE}/${osname}-ostree-pack.yaml""")
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment