在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):JetBrains/teamcity-rest-client开源软件地址(OpenSource Url):https://github.com/JetBrains/teamcity-rest-client开源编程语言(OpenSource Language):Kotlin 99.7%开源软件介绍(OpenSource Introduction):teamcity-rest-clientClient for TeamCity REST API written in Kotlin. The code snippet below will download val docs = BuildConfigurationId("Kotlin_StandardLibraryDocumentation")
val build = TeamCityInstanceFactory.guestAuth("https://teamcity.jetbrains.com").builds()
.fromConfiguration(docs)
.withTag("publish")
.latest()
build!!.downloadArtifacts("*.zip", File("out")) Another snippet will run a build on your own server val tc = TeamCityInstanceFactory.httpAuth(
"https://myserver.local", "login", "password")
val buildConfiguration = tc.buildConfiguration(BuildConfigurationId("BuildConfId"))
val build = buildConfiguration.runBuild(
parameters = mapOf("myparameter1" to "value", "myparameter2" to "value")
) Published to Spacehttps://packages.jetbrains.team/maven/p/teamcity-rest-client/teamcity-rest-client You can add the dependency in your build.gradle file: repositories {
maven {
url "https://packages.jetbrains.team/maven/p/teamcity-rest-client/teamcity-rest-client"
}
}
dependencies {
compile "org.jetbrains.teamcity:teamcity-rest-client:PACKAGE_VERSION"
} ContributingYour contributions are welcome, please read the CONTRIBUTING.md for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论