diff options
author | Sravan Kumar Lakkimsetti | 2017-11-30 12:13:26 +0000 |
---|---|---|
committer | Sravan Kumar Lakkimsetti | 2017-11-30 12:13:39 +0000 |
commit | d6b2de0c35a381c84594e069baa29fe19a98f098 (patch) | |
tree | 7c4b518632301fe461d8611b81c58f597b9d6e24 /production/check-swt-buildinput.sh | |
parent | 29815c215cbcddce2039d5c786a1c23a651d1192 (diff) | |
download | eclipse.platform.releng.aggregator-d6b2de0c35a381c84594e069baa29fe19a98f098.tar.gz eclipse.platform.releng.aggregator-d6b2de0c35a381c84594e069baa29fe19a98f098.tar.xz eclipse.platform.releng.aggregator-d6b2de0c35a381c84594e069baa29fe19a98f098.zip |
Bug 520206 - Don't start a build if there are commits in SWT after last
tag
Change-Id: I55e699c2252c623a4b5b6c1b5d8c1ab9463886bd
Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'production/check-swt-buildinput.sh')
-rwxr-xr-x | production/check-swt-buildinput.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/production/check-swt-buildinput.sh b/production/check-swt-buildinput.sh new file mode 100755 index 000000000..275247226 --- /dev/null +++ b/production/check-swt-buildinput.sh @@ -0,0 +1,36 @@ +#!/bin/bash -x +#******************************************************************************* +# Copyright (c) 2017 IBM Corporation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Sravan Lakkimsetti - initial API and implementation +#******************************************************************************* + +if [ $# -ne 1 ]; then + echo USAGE: $0 env_file + exit 1 +fi + +if [ ! -r "$1" ]; then + echo "$1" cannot be read + echo USAGE: $0 env_file + exit 1 +fi + +source "$1" + +pushd $BUILD_ROOT/gitCache/eclipse.platform.releng.aggregator/eclipse.platform.swt +commit=$(git log --pretty=oneline -1|cut -d' ' -f2-) +popd + +if [[ $commit == v[0-9][0-9][0-9][0-9] ]]; then + echo "SWT build input succesful" + exit 0 +else + echo "SWT build input failed" + exit 1 +fi |