Browse Source

[pipeline] Override MENDER_ADDON_CONNECT_VERSION on build

Extend the mechanism to override mender (client) version to also include
the new addon.

Changelog: None

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
2.3.x
Lluis Campos 4 years ago
parent
commit
6a474e4dde
  1. 7
      .gitlab-ci.yml

7
.gitlab-ci.yml

@ -6,6 +6,8 @@ variables:
# search for and change them too. # search for and change them too.
MENDER_ARTIFACT_VERSION: master MENDER_ARTIFACT_VERSION: master
MENDER_CLIENT_VERSION: latest MENDER_CLIENT_VERSION: latest
# MENDER_ADDON_CONNECT_VERSION: latest
MENDER_ADDON_CONNECT_VERSION: master
# Make sure to update the link in mender-docs to the new one when changing # Make sure to update the link in mender-docs to the new one when changing
# this. # this.
RASPBIAN_URL: http://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2020-05-28/2020-05-27-raspios-buster-lite-armhf.zip RASPBIAN_URL: http://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2020-05-28/2020-05-27-raspios-buster-lite-armhf.zip
@ -74,12 +76,13 @@ build:
- unzip ${RASPBIAN_NAME}.zip - unzip ${RASPBIAN_NAME}.zip
script: script:
- echo "MENDER_CLIENT_VERSION=${MENDER_CLIENT_VERSION}" > mender_client_version_config - echo "MENDER_CLIENT_VERSION=${MENDER_CLIENT_VERSION}" > versions_override_config
- echo "MENDER_ADDON_CONNECT_VERSION=${MENDER_ADDON_CONNECT_VERSION}" >> versions_override_config
- env MENDER_ARTIFACT_NAME=${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION} - env MENDER_ARTIFACT_NAME=${RASPBIAN_NAME}-mender-${MENDER_CLIENT_VERSION}
./docker-mender-convert -d ${RASPBIAN_NAME}.img ./docker-mender-convert -d ${RASPBIAN_NAME}.img
-c configs/${RASPBERRYPI_PLATFORM}_config -c configs/${RASPBERRYPI_PLATFORM}_config
-c configs/images/raspberrypi_raspbian_config -c configs/images/raspberrypi_raspbian_config
-c mender_client_version_config -c versions_override_config
# Upload to temporary S3 bucket # Upload to temporary S3 bucket
- mv deploy ${RASPBERRYPI_PLATFORM} - mv deploy ${RASPBERRYPI_PLATFORM}

Loading…
Cancel
Save