Skip to content
Snippets Groups Projects
Commit 7bd78810 authored by Andrii Sosiuk's avatar Andrii Sosiuk
Browse files

PBB-32 Fix suffix addition in FNGo pipeline for custom projects

 due to an issue in GitLab where escaped variables are not correctly
 passed to child pipelines, a workaround is required.
 As a result, we use raw variables.
 The DEFERRED_RELEASE_VERSION variable was introduced for this purpose.
 However, for custom builds, we have an additional place where we modify
 the DEFERRED_RELEASE_VERSION variable to add a suffix.
 Therefore, extra interim variables need to be added to handle the workaround
 and ensure we get the raw variable in the end.
parent 83f4f610
No related branches found
No related tags found
1 merge request!413PBB-32 Fix suffix addition in FNG pipeline for custom projects
Pipeline #147467 passed with stage
in 15 minutes and 32 seconds
...@@ -220,6 +220,8 @@ workflow: ...@@ -220,6 +220,8 @@ workflow:
RELEASE_NAME_EXPRESSION: Yocto-$${RELEASE_VERSION} RELEASE_NAME_EXPRESSION: Yocto-$${RELEASE_VERSION}
script: script:
- *source_bitbake_env - *source_bitbake_env
- echo ${DISTRO_VERSION}
- echo ${DEFERRED_RELEASE_VERSION}
- echo ${RELEASE_VERSION_EXPRESSION} - echo ${RELEASE_VERSION_EXPRESSION}
- echo ${RELEASE_NAME_EXPRESSION} - echo ${RELEASE_NAME_EXPRESSION}
- RELEASE_VERSION=$(eval echo "${RELEASE_VERSION_EXPRESSION}") - RELEASE_VERSION=$(eval echo "${RELEASE_VERSION_EXPRESSION}")
......
...@@ -103,10 +103,11 @@ fngsystem-pipeline: ...@@ -103,10 +103,11 @@ fngsystem-pipeline:
# https://gitlab.com/gitlab-org/gitlab/-/issues/273409 # https://gitlab.com/gitlab-org/gitlab/-/issues/273409
# Escaped variables are not correctly passed to child pipelines. Proposed workaround # Escaped variables are not correctly passed to child pipelines. Proposed workaround
# is to use raw variables, but we need at least GitLab 15.6 for that. As soon as we # is to use raw variables, but we need at least GitLab 15.6 for that. As soon as we
# update our GitLab, we can get rid of the DEFERRED_RELEASE_VERSION variable and # update our GitLab, we can get rid of the DEFERRED_RELEASE_VERSION,
# assign its value to RELEASE_VERSION_EXPRESSION directly. # interim variables and assign its value to RELEASE_VERSION_EXPRESSION directly.
DEFERRED_RELEASE_VERSION: $$(echo $$DISTRO_VERSION | sed "s/fngsystem-//") PREINTERIM_DR_VERSION: $DEFERRED_RELEASE_VERSION
RELEASE_VERSION_EXPRESSION: $DEFERRED_RELEASE_VERSION INTERIM_DR_VERSION: $$(echo $PREINTERIM_DR_VERSION | sed "s/fngsystem-//")
RELEASE_NAME_EXPRESSION: FNGSystem-${DEFERRED_RELEASE_VERSION} RELEASE_VERSION_EXPRESSION: $INTERIM_DR_VERSION
RELEASE_NAME_EXPRESSION: FNGSystem-${INTERIM_DR_VERSION}
ARTIFACTS_PATH: build-*/tmp/deploy/images/**/* ARTIFACTS_PATH: build-*/tmp/deploy/images/**/*
PACKAGE_TYPE: image PACKAGE_TYPE: image
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