changeset 221:837c9249053f

USASR-2244: Update init20.gradle to pull all changesets from mercurial before attempting to calculate snapshot branch name
author Christopher Springer <springer@nwoca.org>
date Thu, 07 Jul 2016 16:17:18 +0100
parents f6150996053f
children b3cb5db317a0
files init20.gradle
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/init20.gradle	Fri Jul 01 20:56:37 2016 +0100
+++ b/init20.gradle	Thu Jul 07 16:17:18 2016 +0100
@@ -52,6 +52,13 @@
     gradle.ext.hgRepositoryUrl = ("hg path".execute().text.split('=') ?: ['', ''])[1].trim()
 } catch (e) {
 }
+try {
+	if (gradle.ext.bambooPlan) {
+		"hg pull".execute()
+	}
+} catch (e) {
+    logger.error "exception thrown attempting to pull all changesets from mercurial", e 
+}
 
 def springModuleTranslator = [
         'spring-transaction': 'spring-tx',