Set permissions for kotlin compiler on linux and mac even on teamcity
This commit is contained in:
+20
-15
@@ -223,20 +223,11 @@
|
|||||||
</not>
|
</not>
|
||||||
<then>
|
<then>
|
||||||
<!-- Download bootstrap compiler for local build -->
|
<!-- Download bootstrap compiler for local build -->
|
||||||
<get src="https://teamcity.jetbrains.com/guestAuth/repository/download/bt345/bootstrap.tcbuildtag/kotlin-plugin-{build.number}.zip"
|
<get
|
||||||
dest="dependencies/download/bootstrap-compiler.zip" usetimestamp="true"/>
|
src="https://teamcity.jetbrains.com/guestAuth/repository/download/bt345/bootstrap.tcbuildtag/kotlin-plugin-{build.number}.zip"
|
||||||
|
dest="dependencies/download/bootstrap-compiler.zip" usetimestamp="true"/>
|
||||||
<delete dir="dependencies/bootstrap-compiler" failonerror="false"/>
|
<delete dir="dependencies/bootstrap-compiler" failonerror="false"/>
|
||||||
<unzip src="dependencies/download/bootstrap-compiler.zip" dest="dependencies/bootstrap-compiler"/>
|
<unzip src="dependencies/download/bootstrap-compiler.zip" dest="dependencies/bootstrap-compiler"/>
|
||||||
<if>
|
|
||||||
<matches pattern="mac\.zip|tar\.gz" string="${os.tag}"/>
|
|
||||||
<then>
|
|
||||||
<!-- Java can't manipulate permissions -->
|
|
||||||
<exec executable="find">
|
|
||||||
<arg value="dependencies/bootstrap-compiler/Kotlin/kotlinc/bin"/>
|
|
||||||
<arg line="-name 'kotlin*' ! -name '*.bat' -exec chmod a+x '{}' ;"/>
|
|
||||||
</exec>
|
|
||||||
</then>
|
|
||||||
</if>
|
|
||||||
</then>
|
</then>
|
||||||
<else>
|
<else>
|
||||||
<!-- Teamcity should provide bootstrap compiler with dependency feature -->
|
<!-- Teamcity should provide bootstrap compiler with dependency feature -->
|
||||||
@@ -249,13 +240,27 @@
|
|||||||
<then>
|
<then>
|
||||||
<fail message="Bootstrap compiler is expected to be downloaded to 'dependencies/bootstrap-compiler' by TeamCity"/>
|
<fail message="Bootstrap compiler is expected to be downloaded to 'dependencies/bootstrap-compiler' by TeamCity"/>
|
||||||
</then>
|
</then>
|
||||||
|
<else>
|
||||||
|
<echo message="Bootstrap compiler found in 'dependencies/bootstrap-compiler'"/>
|
||||||
|
</else>
|
||||||
</if>
|
</if>
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<if>
|
||||||
|
<matches pattern="mac\.zip|tar\.gz" string="${os.tag}"/>
|
||||||
|
<then>
|
||||||
|
<!-- Java can't manipulate permissions -->
|
||||||
|
<exec executable="find">
|
||||||
|
<arg value="dependencies/bootstrap-compiler/Kotlin/kotlinc/bin"/>
|
||||||
|
<arg line="-name 'kotlin*' ! -name '*.bat' -exec chmod a+x '{}' ;"/>
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
|
||||||
<!-- Markdown parser -->
|
<!-- Markdown parser -->
|
||||||
<get src="https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/.lastFinished/markdown_jar/markdown.jar"
|
<get src="https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/.lastFinished/markdown_jar/markdown.jar"
|
||||||
dest="dependencies/markdown.jar" usetimestamp="true"/>
|
dest="dependencies/markdown.jar" usetimestamp="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<macrodef name="get_android_sdk">
|
<macrodef name="get_android_sdk">
|
||||||
@@ -301,7 +306,7 @@
|
|||||||
|
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${android.os.tag}" arg2="windows"/>
|
<equals arg1="${android.os.tag}" arg2="windows"/>
|
||||||
<then />
|
<then/>
|
||||||
<else>
|
<else>
|
||||||
<exec executable="chmod">
|
<exec executable="chmod">
|
||||||
<arg value="a+x"/>
|
<arg value="a+x"/>
|
||||||
@@ -382,7 +387,7 @@
|
|||||||
<execute_update base.url="@{teamcity.server.url}/guestAuth/app/rest/builds/id:${execute.build.id}"/>
|
<execute_update base.url="@{teamcity.server.url}/guestAuth/app/rest/builds/id:${execute.build.id}"/>
|
||||||
|
|
||||||
<propertyfile file="${dependencies.info.file}">
|
<propertyfile file="${dependencies.info.file}">
|
||||||
<entry key="idea.build.id" value="${execute.build.id}" />
|
<entry key="idea.build.id" value="${execute.build.id}"/>
|
||||||
</propertyfile>
|
</propertyfile>
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user