diff --git a/builds/misc/templates/build-packages.yaml b/builds/misc/templates/build-packages.yaml index d8bc9b28ca1..a6b4cf0b602 100644 --- a/builds/misc/templates/build-packages.yaml +++ b/builds/misc/templates/build-packages.yaml @@ -308,18 +308,17 @@ stages: set -ex git clone --recurse-submodules https://github.com/Azure/iot-identity-service.git pushd iot-identity-service - packageVersion=$(git tag | grep 1.3.[0-9]*$ | sort --version-sort -r | head -1) sudo docker run --rm \ -v "$(Build.SourcesDirectory)/iot-identity-service:/src" \ -e "ARCH=$PACKAGE_ARCH" \ -e "OS=$OS:$OSVERSION" \ - -e "PACKAGE_VERSION=$packageVersion" \ + -e "PACKAGE_VERSION=$VERSION" \ -e "PACKAGE_RELEASE=1" \ --privileged \ "ubuntu:18.04" \ '/src/ci/package.sh' popd - sudo cp iot-identity-service/packages/mariner$(os_version)/$(arch)/aziot-identity-service-$packageVersion-1.cm$(os_version).$(arch).rpm . + sudo cp iot-identity-service/packages/mariner$(os_version)/$(arch)/aziot-identity-service-$VERSION-1.cm$(os_version).$(arch).rpm . sudo rm -rf iot-identity-service - bash: |