Skip to content

kenkyee/teamcity-rest-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teamcity-rest-client

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 buildLocator = TeamCityInstance.guestAuth("https://teamcity.jetbrains.com").builds()
                            .fromConfiguration(docs)
                            .withTag("publish") as BuildLocator
val build = buildLocator.latest()
build!!.downloadArtifacts("*.zip", File("out"))

Published on bintray

https://bintray.com/jetbrains/teamcity-rest-client/teamcity-rest-client/view

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

repositories {
    jcenter()
    maven { url "http://dl.bintray.com/jetbrains/teamcity-rest-client" }
}

dependencies {
    ext.teamcity_client_version = '0.1.45'

    compile "org.jetbrains.teamcity:teamcity-rest-client:$teamcity_client_version"
}

About

Client for TeamCity REST API written in Kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%