rodm / gradle-teamcity-plugin

Gradle plugin for developing TeamCity plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Descriptor tokens can be defined with an inline descriptor

rodm opened this issue · comments

Tokens to be replaced in a descriptor file can be defined when using an inline descriptor but are ignored.

teamcity {
    server {
        descriptor {
            name = 'test plugin'
        }
        tokens VERSION: '1.2.3', BUILD_NUMBER: '123'
    }
}

An alternative to avoid a confusing build script would be to define the tokens and descriptor file path inside the descriptor block.

teamcity {
    server {
        descriptor {
            file = file('teamcity-plugin.xml')
            tokens VERSION: '1.2.3', BUILD_NUMBER: '123'
        }
    }
}

Mixing descriptor file path and tokens with inline descriptor properties should cause a build failure.