Skip to content
Snippets Groups Projects
Commit 27e00b4e authored by Denis Pynkin's avatar Denis Pynkin Committed by 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 3d54b08c
No related branches found
No related tags found
1 merge request!78Add Collection ID to ostree-based recipes
......@@ -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"
......@@ -244,6 +245,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: """
......@@ -267,6 +269,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 \
......@@ -346,6 +350,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;""")
}
}
......@@ -368,6 +373,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