From 615a2cfd3ff20056ef01fcb06714eb80abb29e59 Mon Sep 17 00:00:00 2001 From: Mark McDonnell Date: Fri, 8 Apr 2016 11:23:09 +0100 Subject: [PATCH] Update ci-git-tag-compared-to-release.sh --- ci-git-tag-compared-to-release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ci-git-tag-compared-to-release.sh b/ci-git-tag-compared-to-release.sh index d182d8e..58e3dc2 100644 --- a/ci-git-tag-compared-to-release.sh +++ b/ci-git-tag-compared-to-release.sh @@ -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 \