0
0
mirror of https://github.com/letic/Shell-Scripts.git synced 2024-09-27 21:46:03 +00:00

Update ci-git-tag-compared-to-release.sh

This commit is contained in:
Mark McDonnell 2016-04-08 11:23:09 +01:00
parent e85536a7ba
commit 615a2cfd3f

View File

@ -1,3 +1,15 @@
#!/bin/bash
#
# Example:
# /bin/bash ./ci-git-tag-compared-to-release.sh
#
# Description:
# This script isn't intended to be run standalone but within a Jenkins CI shell execution block
# It gets a release number from an external service (you'd have to one, otherwise this script is useless to you)
# It then checks the current git tag to see if it's larger than the 'release' number
# If it is then it'll go ahead and build a new 'release'
# It's purpose is to prevent builds occuring for simple README style changes within a GitHub repository
echo 0 > status
latest_release=$(curl \