Skip to content
Snippets Groups Projects

Generate ostree static delta for rollback test

Merged Frédéric Dalleau requested to merge wip/fredo/T5682 into apertis/v2019dev0
All threads resolved!
Compare and
2 files
+ 102
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 23
0
@@ -266,6 +266,28 @@ def buildOStree(architecture, type, board, debosarguments = "", repo = "repo") {
--filename ${image_name}.delta""")
}
def buildOStreeRollbackDelta(architecture, type, board, debosarguments = "", repo = "repo") {
def image_name = imageName(architecture, type, board, true)
def branch = "${osname}/${release}/${architecture}-${board}/${type}"
def rollback_branch = "${osname}/${release}/${architecture}-${board}/${type}-rollback"
sh(script: """
cd ${PIPELINE_VERSION}/${architecture}/${type}
echo "/usr/bin/updatectl" > skip_list
ostree --repo=${repo} commit\
--tree=ref=${branch} \
--branch=${rollback_branch} \
--skip-list="skip_list"
ostree --repo=${repo} static-delta generate \
--from=${branch} \
--to=${rollback_branch} \
--inline \
--min-fallback-size=1024 \
--filename ${image_name}_rollback.delta""")
}
/** Generate the image name
*
* To have a single place for image name generation.
@@ -321,6 +343,7 @@ def buildOStreeImage(architecture, type, board, debosarguments = "") {
stage("${architecture} ${type} ${board} OStree image build") {
buildOStree(architecture, type, board, debosarguments, repo)
buildOStreeRollbackDelta(architecture, type, board, debosarguments, repo)
sh(script: """
cd ${PIPELINE_VERSION}/${architecture}/${type}
Loading