Skip to content

Commit

Permalink
Merge pull request #4620 from huangjiao-heart/issue_4603_domain_url
Browse files Browse the repository at this point in the history
feat: SDK 提供获取查看当前构建详情的链接(区分蓝盾、工蜂CI) #4603
  • Loading branch information
irwinsun authored Jul 8, 2021
2 parents 0ab90ce + 61b03db commit 6e14cd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ interface EngineBuildSDKApi : WorkerRestApiSDK {
fun timeout(): Result<Boolean>

fun getCiToken(): String

fun getCiUrl(): String
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import com.tencent.devops.process.pojo.BuildVariables
import com.tencent.devops.worker.common.api.AbstractBuildResourceApi
import com.tencent.devops.worker.common.api.ApiPriority
import com.tencent.devops.worker.common.api.engine.EngineBuildSDKApi
import com.tencent.devops.worker.common.env.AgentEnv
import okhttp3.MediaType
import okhttp3.RequestBody

Expand Down Expand Up @@ -136,4 +137,8 @@ open class EngineBuildResourceApi : AbstractBuildResourceApi(), EngineBuildSDKAp
override fun getCiToken(): String {
return ""
}

override fun getCiUrl(): String {
return AgentEnv.getGateway()
}
}

0 comments on commit 6e14cd1

Please sign in to comment.