Mercurial > public > develkit
diff init20.gradle @ 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 | efa545c6dd65 |
children | b3cb5db317a0 |
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',