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

Pass variable 'production' to OStree and LXC builds


Need to have 'production' variable for correct uploads.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
Reviewed-by: default avatarEmanuele Aina <emanuele.aina@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D7393
parent ff4642cb
No related branches found
Tags debian/3.0.11-1_deb12u2
No related merge requests found
......@@ -91,9 +91,9 @@ def buildImage(architecture, type, board, debosarguments = "", sysroot = false,
}
if (ostree) {
buildOStree(architecture, type, board, debosarguments)
buildOStree(architecture, type, board, debosarguments, production)
/* Create ostree and ospack for container (board name = lxc) */
buildContainer(architecture, type, "lxc", debosarguments)
buildContainer(architecture, type, "lxc", debosarguments, production)
}
} finally {
......@@ -107,7 +107,7 @@ def buildImage(architecture, type, board, debosarguments = "", sysroot = false,
}
}
def buildOStree(architecture, type, board, debosarguments = "") {
def buildOStree(architecture, type, board, debosarguments = "", production = false) {
stage("${architecture} ${type} ${board} OStree repo pull") {
sh(script: """\
cd ${PIPELINE_VERSION}/${architecture}/${type}; \
......@@ -138,9 +138,9 @@ def buildOStree(architecture, type, board, debosarguments = "") {
}
def buildContainer(architecture, type, board, debosarguments = "") {
def buildContainer(architecture, type, board, debosarguments = "", production = false) {
buildOStree(architecture, type, board, debosarguments)
buildOStree(architecture, type, board, debosarguments, production)
stage("${architecture} ${type} ${board} OStree pack") {
sh(script: """\
......
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