Enable override version filter only for specific branch - allow auto-merge to other branches

This commit is contained in:
Nikolay Krasko
2015-09-24 18:55:13 +03:00
committed by Nikolay Krasko
parent 35caa79019
commit 2cf640463c
+15 -5
View File
@@ -1,7 +1,9 @@
<project name="Update Dependencies" default="update" xmlns:if="ant:if" xmlns:unless="ant:unless"> <project name="Update Dependencies" default="update" xmlns:if="ant:if" xmlns:unless="ant:unless">
<property name="ideaVersion" value="142.4859.6"/> <property name="ideaVersion" value="142.4859.6"/>
<property name="kotlin.bootstrap.locator" value="buildType:bt345,tag:bootstrap,status:SUCCESS"/> <property name="kotlin.bootstrap.branch" value=""/>
<property name="kotlin.bootstrap.branch.locator" value=""/>
<property name="kotlin.bootstrap.locator" value="buildType:bt345,tag:bootstrap,status:SUCCESS${kotlin.bootstrap.branch.locator}"/>
<property name="kotlin.bootstrap.locator.force" value="false"/> <property name="kotlin.bootstrap.locator.force" value="false"/>
<property name="markdown.locator" value="buildType:IntelliJMarkdownParser_Build,status:SUCCESS"/> <property name="markdown.locator" value="buildType:IntelliJMarkdownParser_Build,status:SUCCESS"/>
@@ -10,7 +12,7 @@
<!-- Uncomment to enable force version increment in branch. Set override.version.disabled to temporary disable feature without commits --> <!-- Uncomment to enable force version increment in branch. Set override.version.disabled to temporary disable feature without commits -->
<!-- <!--
<property name="override.version.url" value="https://teamcity.jetbrains.com/guestAuth/app/rest/builds/?locator=buildType:bt345,status:SUCCESS,branch:M13,count:1"/> <property name="override.version.url" value="https://teamcity.jetbrains.com/guestAuth/app/rest/builds/?locator=buildType:bt345,status:SUCCESS,count:1${kotlin.bootstrap.branch.locator}"/>
--> -->
<!--<property name="override.version.disabled" value="true"/>--> <!--<property name="override.version.disabled" value="true"/>-->
@@ -783,8 +785,17 @@
</target> </target>
<target name="override-version"> <target name="override-version">
<sequential if:set="override.version.url"> <condition property="need.version.override">
<sequential unless:set="override.version.disabled"> <and>
<equals arg1="${kotlin.bootstrap.branch}" arg2="${teamcity.build.branch}"/>
<isset property="override.version.url"/>
<not>
<isset property="override.version.disabled"/>
</not>
</and>
</condition>
<sequential if:set="need.version.override">
<local name="override.version.build.number"/> <local name="override.version.build.number"/>
<loadresource property="override.version.build.number"> <loadresource property="override.version.build.number">
<url url="${override.version.url}"/> <url url="${override.version.url}"/>
@@ -809,6 +820,5 @@
<echo message="##teamcity[buildNumber '${updated.version.number}']"/> <echo message="##teamcity[buildNumber '${updated.version.number}']"/>
</sequential> </sequential>
</sequential>
</target> </target>
</project> </project>