There was already discussion about setting automatics ARTIFACT_NAME in old google forum just want to share how I did it (maybe someone will find it handy).
Basically I’ve setup in local.conf
MENDER_ARTIFACT_NAME ?= "release-1"
this variable have weak preference so our set with environment will be used (if we don’t use one in env default release-1 will be used).
Then in build script I set:
export MENDER_ARTIFACT_NAME="$version" export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE MENDER_ARTIFACT_NAME"
where $version is desired version (we use it from runner like date_time_machine…)
finally build then image like usual and mender artifact will have then version used in MENDER_ARTIFACT_NAME variable. Comments? Thanks.