Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save VladRassokhin/3fb92e7724478047e7a8c7bacb7c7295 to your computer and use it in GitHub Desktop.
TeamCity XML configs: replace CloudImage id for source-id
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="no"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="extension[@type='CloudImage']/@id">
<xsl:attribute name="id">
<xsl:value-of select="parent::extension/parameters/param[@name='source-id']/@value"/>
</xsl:attribute>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment