Skip to content

Commit

Permalink
FABN-997 Update pipeline scripts
Browse files Browse the repository at this point in the history
Change-Id: Ia577e93e15db6928a549152c85bf694a6fba3912
Signed-off-by: rameshthoomu <[email protected]>
  • Loading branch information
rameshthoomu committed Nov 6, 2018
1 parent d3ada6f commit c79db9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Jenkins_Scripts/Publish_NPM_Modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ npmPublish() {
print ver}')

echo "===> UNSTABLE VERSION --> $UNSTABLE_VER"
UNSTABLE_INCREMENT=$(npm dist-tags ls "$1" | awk '/$CURRENT_TAG/{
UNSTABLE_INCREMENT=$(npm dist-tags ls "$1" | awk "/$CURRENT_TAG"":"/'{
ver=$NF
rel=$NF
sub(/.*\./,"",rel)
sub(/\.[[:digit:]]+$/,"",ver)
print ver"."rel+1}')
echo "===> Incremented UNSTABLE VERSION --> $UNSTABLE_INCREMENT"

# Get last digit of the unstable version of $CURRENT_TAG
UNSTABLE_INCREMENT=$(echo $UNSTABLE_INCREMENT| rev | cut -d '.' -f 1 | rev)
echo "--------> UNSTABLE_INCREMENT : $UNSTABLE_INCREMENT"
Expand Down

0 comments on commit c79db9b

Please sign in to comment.