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
+ 28
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 18
0
@@ -266,6 +266,23 @@ def buildOStree(architecture, type, board, debosarguments = "", repo = "repo") {
--filename ${image_name}.delta""")
}
def buildOStreeBad(architecture, type, board, debosarguments = "", repo = "repo") {
def image_name = imageName(architecture, type, board, true)
def branch = "${osname}/${release}/${architecture}-${board}/${type}"
def bad_branch = "${osname}/${release}/${architecture}-${board}/${type}_bad"
sh(script: """
cd ${PIPELINE_VERSION}/${architecture}/${type}
ostree --repo=${repo} static-delta generate \
--from=${branch} \
--to=${bad_branch} \
--inline \
--min-fallback-size=1024 \
--filename ${image_name}_bad.delta""")
}
/** Generate the image name
*
* To have a single place for image name generation.
@@ -321,6 +338,7 @@ def buildOStreeImage(architecture, type, board, debosarguments = "") {
stage("${architecture} ${type} ${board} OStree image build") {
buildOStree(architecture, type, board, debosarguments, repo)
buildOStreeBad(architecture, type, board, debosarguments, repo)
sh(script: """
cd ${PIPELINE_VERSION}/${architecture}/${type}
Loading