/teamcity-rest-client

Client for TeamCity REST API written in Kotlin

Primary LanguageKotlinOtherNOASSERTION

teamcity-rest-client JetBrains team project License Build Status Download

Client for TeamCity REST API written in Kotlin. The code snippet below will download *.zip artifacts from the latest successfull build with tag publish of the specified build configuration to out directory.

val docs = BuildConfigurationId("Kotlin_StandardLibraryDocumentation")
val build = TeamCityInstance.guestAuth("https://teamcity.jetbrains.com").builds()
                            .fromConfiguration(docs)
                            .withTag("publish")
                            .latest()
build!!.downloadArtifacts("*.zip", File("out"))

Published on jcenter

https://bintray.com/bintray/jcenter?filterByPkgName=teamcity-rest-client

You can add the dependency in your build.gradle file:

repositories {
    jcenter()
}

dependencies {
    compile "org.jetbrains.teamcity:teamcity-rest-client:PACKAGE_VERSION"
}