@@ -482,7 +482,7 @@ func addWebService(c *restful.Container) error {
|
|||||||
DataFormat("delay=%d")))
|
DataFormat("delay=%d")))
|
||||||
|
|
||||||
// match /blue/rest/organizations/jenkins/pipelines/{projectName}/{pipelineName}/branches/{}/runs/
|
// match /blue/rest/organizations/jenkins/pipelines/{projectName}/{pipelineName}/branches/{}/runs/
|
||||||
webservice.Route(webservice.POST("/devops/{projectName}/pipeline/{pipelineName}/branches/{branchName}/run").
|
webservice.Route(webservice.POST("/devops/{projectName}/pipelines/{pipelineName}/branches/{branchName}/run").
|
||||||
To(devopsapi.RunPipeline).
|
To(devopsapi.RunPipeline).
|
||||||
Metadata(restfulspec.KeyOpenAPITags, tags).
|
Metadata(restfulspec.KeyOpenAPITags, tags).
|
||||||
Doc("Get pipeline artifacts.").
|
Doc("Get pipeline artifacts.").
|
||||||
@@ -494,7 +494,7 @@ func addWebService(c *restful.Container) error {
|
|||||||
Writes(devops.QueuedBlueRun{}))
|
Writes(devops.QueuedBlueRun{}))
|
||||||
|
|
||||||
// match /pipeline_status/blue/rest/organizations/jenkins/pipelines/{projectName}/{pipelineName}/branches/{branchName}/runs/{runId}/nodes/?limit=
|
// match /pipeline_status/blue/rest/organizations/jenkins/pipelines/{projectName}/{pipelineName}/branches/{branchName}/runs/{runId}/nodes/?limit=
|
||||||
webservice.Route(webservice.GET("/devops/{projectName}/pipeline/{pipelineName}/branches/{branchName}/runs/{runId}/nodes/{nodeId}/steps/status").
|
webservice.Route(webservice.GET("/devops/{projectName}/pipelines/{pipelineName}/branches/{branchName}/runs/{runId}/nodes/{nodeId}/steps/status").
|
||||||
To(devopsapi.GetStepsStatus).
|
To(devopsapi.GetStepsStatus).
|
||||||
Metadata(restfulspec.KeyOpenAPITags, tags).
|
Metadata(restfulspec.KeyOpenAPITags, tags).
|
||||||
Doc("Get pipeline steps status.").
|
Doc("Get pipeline steps status.").
|
||||||
|
|||||||
@@ -49,5 +49,4 @@ const (
|
|||||||
ToJsonUrl = "/pipeline-model-converter/toJson"
|
ToJsonUrl = "/pipeline-model-converter/toJson"
|
||||||
GetNotifyCommitUrl = "/git/notifyCommit/?"
|
GetNotifyCommitUrl = "/git/notifyCommit/?"
|
||||||
GithubWebhookUrl = "/github-webhook/"
|
GithubWebhookUrl = "/github-webhook/"
|
||||||
LoginUrl = "/j_acegi_security_check"
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user