summaryrefslogtreecommitdiff
path: root/gradle/teamcity.gradle
blob: 950494d9944eb66d648aadf54a7ca31757e8c884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

def teamcitySuffix = project.findProperty("teamcitySuffix")?.toString()
if (!teamcityInteractionDisabled && project.hasProperty("teamcity") && !(build_snapshot_train || rootProject.properties['build_snapshot_up'])) {
    // Tell teamcity about version number
    def postfix = (teamcitySuffix == null) ? "" : " ($teamcitySuffix)"
    println("##teamcity[buildNumber '${project.version}${postfix}']")

    gradle.taskGraph.beforeTask {
        println("##teamcity[progressMessage 'Gradle: ${it.project.path}:${it.name}']")
    }
}