blob: 71657a3785c7d0ba25a0dcb624cbd8f0627960d4 [file] [log] [blame]
Paul Sokolovskyef0682b2022-11-12 12:19:33 +03001#!/bin/bash -e
2if [ -n "${GERRIT_PATCHSET_REVISION}" ]; then
3 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
4else
5 echo "#${BUILD_NUMBER}" > ${WORKSPACE}/version.txt
6fi