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 Show latest version
2 files
+ 8
8
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 5
5
@@ -264,10 +264,10 @@ def buildOStree(architecture, type, board, debosarguments = "", repo = "repo") {
--filename ${image_name}.delta""")
}
def buildOStreeTestDelta(architecture, type, board, debosarguments = "", repo = "repo") {
def buildOStreeRollbackDelta(architecture, type, board, debosarguments = "", repo = "repo") {
def image_name = imageName(architecture, type, board, true)
def branch = "${osname}/${release}/${architecture}-${board}/${type}"
def test_branch = "${osname}/${release}/${architecture}-${board}/${type}_test"
def rollback_branch = "${osname}/${release}/${architecture}-${board}/${type}-rollback"
sh(script: """
cd ${PIPELINE_VERSION}/${architecture}/${type}
@@ -287,10 +287,10 @@ def buildOStreeTestDelta(architecture, type, board, debosarguments = "", repo =
cd ${PIPELINE_VERSION}/${architecture}/${type}
ostree --repo=${repo} static-delta generate \
--from=${branch} \
--to=${test_branch} \
--to=${rollback_branch} \
--inline \
--min-fallback-size=1024 \
--filename ${image_name}_test.delta""")
--filename ${image_name}_rollback.delta""")
}
@@ -352,7 +352,7 @@ def buildOStreeImage(architecture, type, board, debosarguments = "") {
stage("${architecture} ${type} ${board} OStree image build") {
buildOStree(architecture, type, board, debosarguments, repo)
buildOStreeTestDelta(architecture, type, board, debosarguments, repo)
buildOStreeRollbackDelta(architecture, type, board, debosarguments, repo)
sh(script: """
cd ${PIPELINE_VERSION}/${architecture}/${type}
Loading