mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 02:11:38 +02:00
Added time-stamping to the unofficial version number.
This commit is contained in:
parent
260a778f1c
commit
c5a5abc9cd
@ -62,9 +62,9 @@ cp $M2_REPO/org/onlab/onos/onos-branding/$ONOS_VERSION/onos-branding-*.jar \
|
||||
|
||||
# Patch in the ONOS version file use the build number or the user name for
|
||||
# build postfix in place of the SNAPSHOT post-fix.
|
||||
build=${BUILD_NUMBER:-$(id -un)}
|
||||
build=${BUILD_NUMBER:-$(id -un)~$(date +'%Y/%m/%d@%H:%M')}
|
||||
grep '<version>' $ONOS_ROOT/pom.xml | head -n1 | \
|
||||
sed 's:.*<version>::g;s:</version>.*::g' | sed "s/SNAPSHOT/$build/g" \
|
||||
sed 's:.*<version>::g;s:</version>.*::g' | sed "s#SNAPSHOT#$build#g" \
|
||||
>> $ONOS_STAGE/VERSION
|
||||
|
||||
# Now package up the ONOS tar file
|
||||
|
Loading…
x
Reference in New Issue
Block a user