Created
June 5, 2023 12:00
-
-
Save VladRassokhin/3fb92e7724478047e7a8c7bacb7c7295 to your computer and use it in GitHub Desktop.
TeamCity XML configs: replace CloudImage id for source-id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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