@@ -50,7 +50,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{devops}" ) .
To ( devopsapi . GetDevOpsProjectHandler ) .
Doc ( "g et devops project" ) .
Doc ( "G et devops project" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Returns ( http . StatusOK , RespOK , devops . DevOpsProject { } ) .
@@ -58,15 +58,16 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . PATCH ( "/devops/{devops}" ) .
To ( devopsapi . UpdateProjectHandler ) .
Doc ( "get devops project" ) .
Doc ( "Update devops project" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Reads ( devops . DevOpsProject { } ) .
Returns ( http . StatusOK , RespOK , devops . DevOpsProject { } ) .
Writes ( devops . DevOpsProject { } ) )
webservice . Route ( webservice . GET ( "/devops/{devops}/defaultroles" ) .
To ( devopsapi . GetDevOpsProjectDefaultRoles ) .
Doc ( "g et devops project defaultroles" ) .
Doc ( "G et devops project default roles" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . Role { } ) .
@@ -74,7 +75,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{devops}/members" ) .
To ( devopsapi . GetDevOpsProjectMembersHandler ) .
Doc ( "g et devops project members" ) .
Doc ( "G et devops project members" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . QueryParameter ( params . PagingParam , "page" ) .
@@ -89,7 +90,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{devops}/members/{members}" ) .
To ( devopsapi . GetDevOpsProjectMemberHandler ) .
Doc ( "g et devops project member" ) .
Doc ( "G et devops project member" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "members" , "member's username" ) ) .
@@ -98,7 +99,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . POST ( "/devops/{devops}/members" ) .
To ( devopsapi . AddDevOpsProjectMemberHandler ) .
Doc ( "a dd devops project members" ) .
Doc ( "A dd devops project members" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Returns ( http . StatusOK , RespOK , devops . DevOpsProjectMembership { } ) .
@@ -106,7 +107,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . PATCH ( "/devops/{devops}/members/{members}" ) .
To ( devopsapi . UpdateDevOpsProjectMemberHandler ) .
Doc ( "u pdate devops project members" ) .
Doc ( "U pdate devops project members" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "members" , "member's username" ) ) .
@@ -115,7 +116,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . DELETE ( "/devops/{devops}/members/{members}" ) .
To ( devopsapi . DeleteDevOpsProjectMemberHandler ) .
Doc ( "d elete devops project members" ) .
Doc ( "D elete devops project members" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "members" , "member's username" ) ) .
@@ -123,7 +124,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . POST ( "/devops/{devops}/pipelines" ) .
To ( devopsapi . CreateDevOpsProjectPipelineHandler ) .
Doc ( "a dd devops project pipeline" ) .
Doc ( "A dd devops project pipeline" ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Returns ( http . StatusOK , RespOK , devops . ProjectPipeline { } ) .
@@ -132,9 +133,9 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . PUT ( "/devops/{devops}/pipelines/{pipelines}" ) .
To ( devopsapi . UpdateDevOpsProjectPipelineHandler ) .
Doc ( "u pdate devops project pipeline" ) .
Doc ( "U pdate devops project pipeline" ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "pipelines" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "pipelines" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Returns ( http . StatusOK , RespOK , devops . ProjectPipeline { } ) .
Writes ( devops . ProjectPipeline { } ) .
@@ -142,49 +143,49 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{devops}/pipelines/{pipelines}/config" ) .
To ( devopsapi . GetDevOpsProjectPipelineHandler ) .
Doc ( "g et devops project pipeline config" ) .
Doc ( "G et devops project pipeline config" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "pipelines" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "pipelines" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Returns ( http . StatusOK , RespOK , devops . ProjectPipeline { } ) .
Writes ( devops . ProjectPipeline { } ) )
webservice . Route ( webservice . GET ( "/devops/{devops}/pipelines/{pipelines}/sonarStatus" ) .
To ( devopsapi . GetPipelineSonarStatusHandler ) .
Doc ( "g et devops project pipeline sonarStatus" ) .
Doc ( "G et devops project pipeline sonarStatus" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "pipelines" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "pipelines" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . SonarStatus { } ) .
Writes ( [ ] devops . SonarStatus { } ) )
webservice . Route ( webservice . GET ( "/devops/{devops}/pipelines/{pipelines}/branches/{branches}/sonarStatus" ) .
To ( devopsapi . GetMultiBranchesPipelineSonarStatusHandler ) .
Doc ( "g et devops project pipeline sonarStatus" ) .
Doc ( "G et devops project pipeline sonarStatus" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "pipelines" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "pipelines" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branches" , "branch name" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . SonarStatus { } ) .
Writes ( [ ] devops . SonarStatus { } ) )
webservice . Route ( webservice . DELETE ( "/devops/{devops}/pipelines/{pipelines}" ) .
To ( devopsapi . DeleteDevOpsProjectPipelineHandler ) .
Doc ( "d elete devops project pipeline" ) .
Doc ( "D elete devops project pipeline" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "pipelines" , "pipeline name " ) ) )
Param ( webservice . PathParameter ( "pipelines" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) )
webservice . Route ( webservice . POST ( "/devops/{devops}/credentials" ) .
To ( devopsapi . CreateDevOpsProjectCredentialHandler ) .
Doc ( "a dd project credential pipeline" ) .
Doc ( "A dd project credential pipeline" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Reads ( devops . JenkinsCredential { } ) )
webservice . Route ( webservice . PUT ( "/devops/{devops}/credentials/{credentials}" ) .
To ( devopsapi . UpdateDevOpsProjectCredentialHandler ) .
Doc ( "u pdate project credential pipeline" ) .
Doc ( "U pdate project credential pipeline" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "credentials" , "credential's Id" ) ) .
@@ -199,7 +200,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{devops}/credentials/{credentials}" ) .
To ( devopsapi . GetDevOpsProjectCredentialHandler ) .
Doc ( "g et project credential pipeline" ) .
Doc ( "G et project credential pipeline" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "credentials" , "credential's Id" ) ) .
@@ -210,7 +211,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{devops}/credentials" ) .
To ( devopsapi . GetDevOpsProjectCredentialsHandler ) .
Doc ( "g et project credential pipeline" ) .
Doc ( "G et project credential pipeline" ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Param ( webservice . PathParameter ( "devops" , "devops project's Id" ) ) .
Param ( webservice . PathParameter ( "credentials" , "credential's Id" ) ) .
@@ -222,9 +223,9 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{projectName}/pipelines/{pipelineName}" ) .
To ( devopsapi . GetPipeline ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get DevOps Pipelines. " ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Doc ( "Get a Pipeline Inside a DevOps Project " ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Returns ( http . StatusOK , RespOK , devops . Pipeline { } ) .
Writes ( devops . Pipeline { } ) )
@@ -233,16 +234,16 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . SearchPipelines ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Search DevOps resource." ) .
Param ( webservice . QueryParameter ( "q" , "query pipelines" ) .
Param ( webservice . QueryParameter ( "q" , "query pipelines, condition for filtering. " ) .
Required ( false ) .
DataFormat ( "q=%s" ) ) .
Param ( webservice . QueryParameter ( "filter" , "f ilter resource " ) .
Param ( webservice . QueryParameter ( "filter" , "F ilter some types of jobs. e.g. no-folder, will not get a job of type folder " ) .
Required ( false ) .
DataFormat ( "filter=%s" ) ) .
Param ( webservice . QueryParameter ( "start" , "start page " ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( false ) .
DataFormat ( "start=%d" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( false ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . Pipeline { } ) .
@@ -253,15 +254,15 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . SearchPipelineRuns ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Search DevOps Pipelines runs in branch." ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . QueryParameter ( "start" , "start page " ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( false ) .
DataFormat ( "start=%d" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( false ) .
DataFormat ( "limit=%d" ) ) .
Param ( webservice . QueryParameter ( "branch" , "branch " ) .
Param ( webservice . QueryParameter ( "branch" , "the name of branch, same as repository brnach, will be filter by branch. " ) .
Required ( false ) .
DataFormat ( "branch=%s" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . BranchPipelineRun { } ) .
@@ -271,12 +272,12 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{projectName}/pipelines/{pipelineName}/branches/{branchName}/runs/{runId}" ) .
To ( devopsapi . GetBranchPipelineRun ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get DevOps Pipelines run in branch. " ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "start" , "start" ) .
Doc ( "Get all runs in a branch" ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( false ) .
DataFormat ( "start=%d" ) ) .
Returns ( http . StatusOK , RespOK , devops . BranchPipelineRun { } ) .
@@ -286,12 +287,12 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{projectName}/pipelines/{pipelineName}/branches/{branchName}/runs/{runId}/nodes" ) .
To ( devopsapi . GetPipelineRunNodesbyBranch ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get node on DevOps Pipelines run." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit" ) .
Doc ( "Get MultiBranch Pipeline run nodes ." ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( false ) .
DataFormat ( "limit=%d" ) .
DefaultValue ( "limit=10000" ) ) .
@@ -304,13 +305,13 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipelines step log." ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline runs node id" ) ) .
Param ( webservice . PathParameter ( "stepId" , "pipeline runs step id" ) ) .
Param ( webservice . QueryParameter ( "start" , "start" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id, the one node in pipeline. " ) ) .
Param ( webservice . PathParameter ( "stepId" , "pipeline step id, the one step in pipeline. " ) ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( true ) .
DataFormat ( "start=%d" ) .
DefaultValue ( "start=0" ) ) )
@@ -321,12 +322,12 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipelines step log." ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline runs node id" ) ) .
Param ( webservice . PathParameter ( "stepId" , "pipeline runs step id" ) ) .
Param ( webservice . QueryParameter ( "start" , "start" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id, the one node in pipeline. " ) ) .
Param ( webservice . PathParameter ( "stepId" , "pipeline step id, the one step in pipeline. " ) ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( true ) .
DataFormat ( "start=%d" ) .
DefaultValue ( "start=0" ) ) )
@@ -336,7 +337,7 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . Validate ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Validate Github personal access token." ) .
Param ( webservice . PathParameter ( "scmId" , "SCM id " ) ) .
Param ( webservice . PathParameter ( "scmId" , "the id of SCM. " ) ) .
Returns ( http . StatusOK , RespOK , devops . Validates { } ) .
Writes ( devops . Validates { } ) )
@@ -345,8 +346,8 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . GetSCMOrg ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "List organizations of SCM" ) .
Param ( webservice . PathParameter ( "scmId" , "SCM id " ) ) .
Param ( webservice . QueryParameter ( "credentialId" , "credential id for SCM" ) .
Param ( webservice . PathParameter ( "scmId" , "the id of SCM. " ) ) .
Param ( webservice . QueryParameter ( "credentialId" , "credential id for SCM. " ) .
Required ( true ) .
DataFormat ( "credentialId=%s" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . SCMOrg { } ) .
@@ -358,14 +359,14 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get SCM repositories in an organization" ) .
Param ( webservice . PathParameter ( "scmId" , "SCM id" ) ) .
Param ( webservice . PathParameter ( "organizationId" , "organization Id, such as github username" ) ) .
Param ( webservice . QueryParameter ( "credentialId" , "credential id for SCM" ) .
Param ( webservice . PathParameter ( "organizationId" , "organization Id, such as github username. " ) ) .
Param ( webservice . QueryParameter ( "credentialId" , "credential id for SCM. " ) .
Required ( true ) .
DataFormat ( "credentialId=%s" ) ) .
Param ( webservice . QueryParameter ( "pageNumber" , "pag e number" ) .
Param ( webservice . QueryParameter ( "pageNumber" , "th e number of page. " ) .
Required ( true ) .
DataFormat ( "pageNumber=%d" ) ) .
Param ( webservice . QueryParameter ( "pageSize" , "pag e size" ) .
Param ( webservice . QueryParameter ( "pageSize" , "th e size of page. " ) .
Required ( true ) .
DataFormat ( "pageSize=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . OrgRepo { } ) .
@@ -376,15 +377,15 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . StopBranchPipeline ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Stop pipeline in running" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "blocking" , "stop and between each retries will sleep" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "blocking" , "stop and between each retries will sleep. " ) .
Required ( false ) .
DataFormat ( "blocking=%t" ) .
DefaultValue ( "blocking=false" ) ) .
Param ( webservice . QueryParameter ( "timeOutInSecs" , "the time of stop and between each retries sleep" ) .
Param ( webservice . QueryParameter ( "timeOutInSecs" , "the time of stop and between each retries sleep. " ) .
Required ( false ) .
DataFormat ( "timeOutInSecs=%d" ) .
DefaultValue ( "timeOutInSecs=10" ) ) .
@@ -396,14 +397,14 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . StopPipeline ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Stop pipeline in running" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "blocking" , "stop and between each retries will sleep" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "blocking" , "stop and between each retries will sleep. " ) .
Required ( false ) .
DataFormat ( "blocking=%t" ) .
DefaultValue ( "blocking=false" ) ) .
Param ( webservice . QueryParameter ( "timeOutInSecs" , "the time of stop and between each retries sleep" ) .
Param ( webservice . QueryParameter ( "timeOutInSecs" , "the time of stop and between each retries sleep. " ) .
Required ( false ) .
DataFormat ( "timeOutInSecs=%d" ) .
DefaultValue ( "timeOutInSecs=10" ) ) .
@@ -415,10 +416,10 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . ReplayBranchPipeline ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Replay pipeline" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Returns ( http . StatusOK , RespOK , devops . ReplayPipe { } ) .
Writes ( devops . ReplayPipe { } ) )
@@ -427,9 +428,9 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . ReplayPipeline ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Replay pipeline" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Returns ( http . StatusOK , RespOK , devops . ReplayPipe { } ) .
Writes ( devops . ReplayPipe { } ) )
@@ -439,11 +440,11 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get Pipelines run log." ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "start" , "start" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( true ) .
DataFormat ( "start=%d" ) .
DefaultValue ( "start=0" ) ) )
@@ -454,10 +455,10 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get Pipelines run log." ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "start" , "start" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( true ) .
DataFormat ( "start=%d" ) .
DefaultValue ( "start=0" ) ) )
@@ -467,14 +468,14 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . GetBranchArtifacts ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipeline artifacts." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "start" , "start page " ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( false ) .
DataFormat ( "start=%d" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( false ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , "The filed of \"Url\" in response can download artifacts" , [ ] devops . Artifacts { } ) .
@@ -485,13 +486,13 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . GetArtifacts ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipeline artifacts." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "start" , "start page " ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "start" , "the count of item start. " ) .
Required ( false ) .
DataFormat ( "start=%d" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( false ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , "The filed of \"Url\" in response can download artifacts" , [ ] devops . Artifacts { } ) .
@@ -501,16 +502,16 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{projectName}/pipelines/{pipelineName}/branches" ) .
To ( devopsapi . GetPipeBranch ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipeline of branch." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . QueryParameter ( "filter" , "filter remote" ) .
Doc ( "Get MultiBranch pipeline branches ." ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . QueryParameter ( "filter" , "filter remote scm. e.g. origin " ) .
Required ( true ) .
DataFormat ( "filter=%s" ) ) .
Param ( webservice . QueryParameter ( "start" , "start" ) .
Param ( webservice . QueryParameter ( "start" , "the count of branches start. " ) .
Required ( true ) .
DataFormat ( "start=%d" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Param ( webservice . QueryParameter ( "limit" , "the count of branches limit. " ) .
Required ( true ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . PipeBranch { } ) .
@@ -523,12 +524,12 @@ func addWebService(c *restful.Container) error {
Doc ( "Pauses pipeline execution and allows the user to interact and control the flow of the build." ) .
Reads ( devops . CheckPlayload { } ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id" ) ) .
Param ( webservice . PathParameter ( "stepId" , "pipeline step id" ) ) )
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id, the one node in pipeline. " ) ) .
Param ( webservice . PathParameter ( "stepId" , "pipeline step id, the one step in pipeline. " ) ) )
// match /blue/rest/organizations/jenkins/pipelines/{projectName}/pipelines/{pipelineName}/runs/{runId}/nodes/{nodeId}/steps/{stepId}
webservice . Route ( webservice . POST ( "/devops/{projectName}/pipelines/{pipelineName}/runs/{runId}/nodes/{nodeId}/steps/{stepId}" ) .
@@ -537,10 +538,10 @@ func addWebService(c *restful.Container) error {
Doc ( "Pauses pipeline execution and allows the user to interact and control the flow of the build." ) .
Reads ( devops . CheckPlayload { } ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id" ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id, the one node in pipeline. " ) ) .
Param ( webservice . PathParameter ( "stepId" , "pipeline step id" ) ) )
// match /job/project-8QnvykoJw4wZ/job/test-1/indexing/consoleText
@@ -549,8 +550,8 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get index console log." ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) )
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) )
// match /job/{projectName}/job/{pipelineName}/build?delay=0
webservice . Route ( webservice . POST ( "/devops/{projectName}/pipelines/{pipelineName}/scan" ) .
@@ -558,10 +559,10 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Start a build." ) .
Produces ( "text/html; charset=utf-8" ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . QueryParameter ( "delay" , "delay time" ) .
Required ( tru e) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . QueryParameter ( "delay" , "will be delay time to scan. " ) .
Required ( fals e) .
DataFormat ( "delay=%d" ) ) )
// match /blue/rest/organizations/jenkins/pipelines/{projectName}/{pipelineName}/branches/{}/runs/
@@ -570,9 +571,9 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Run pipeline." ) .
Reads ( devops . RunPayload { } ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Returns ( http . StatusOK , RespOK , devops . QueuedBlueRun { } ) .
Writes ( devops . QueuedBlueRun { } ) )
@@ -582,8 +583,8 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Run pipeline." ) .
Reads ( devops . RunPayload { } ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Returns ( http . StatusOK , RespOK , devops . QueuedBlueRun { } ) .
Writes ( devops . QueuedBlueRun { } ) )
@@ -592,12 +593,12 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . GetBranchStepsStatus ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipeline steps status." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run name " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id, the one node in pipeline. " ) ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( true ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . QueuedBlueRun { } ) .
@@ -608,11 +609,11 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . GetStepsStatus ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipeline steps status." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run name " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id, the one node in pipeline. " ) ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( true ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . QueuedBlueRun { } ) .
@@ -622,7 +623,7 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/crumbissuer" ) .
To ( devopsapi . GetCrumb ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get crumb" ) .
Doc ( "Get crumb issuer. A CrumbIssuer represents an algorithm to generate a nonce value, known as a crumb, to counter cross site request forgery exploits. Crumbs are typically hashes incorporating information that uniquely identifies an agent that sends a request, along with a guarded secret so that the crumb value cannot be forged by a third party. " ) .
Returns ( http . StatusOK , RespOK , devops . Crumb { } ) .
Writes ( devops . Crumb { } ) )
@@ -643,7 +644,7 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Produces ( "application/json" , "charset=utf-8" ) .
Doc ( "Check cron script compile." ) .
Param ( webservice . QueryParameter ( "value" , "cpec value " ) .
Param ( webservice . QueryParameter ( "value" , "string of cron script. " ) .
Required ( true ) .
DataFormat ( "value=%s" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . QueuedBlueRun { } ) .
@@ -655,9 +656,9 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . GetPipelineRun ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get run pipeline in project." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id" ) ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project" ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Returns ( http . StatusOK , RespOK , devops . PipelineRun { } ) .
Writes ( devops . PipelineRun { } ) )
@@ -665,10 +666,10 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{projectName}/pipelines/{pipelineName}/branches/{branchName}" ) .
To ( devopsapi . GetBranchPipeline ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get Pipeline run in branch." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Doc ( "Get Pipeline run by branch." ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project" ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach " ) ) .
Returns ( http . StatusOK , RespOK , devops . BranchPipeline { } ) .
Writes ( devops . BranchPipeline { } ) )
@@ -677,10 +678,10 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . GetPipelineRunNodes ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get Pipeline run nodes." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit coun t" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project" ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build " ) ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limi t" ) .
Required ( false ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . PipelineRunNodes { } ) .
@@ -690,13 +691,13 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{projectName}/pipelines/{pipelineName}/branches/{branchName}/runs/{runId}/nodes/{nodeId}/steps" ) .
To ( devopsapi . GetBranchNodeSteps ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get steps in node." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id" ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Doc ( "Get steps in node by branch ." ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project" ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id, the one node in pipeline. " ) ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( false ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . NodeSteps { } ) .
@@ -707,11 +708,11 @@ func addWebService(c *restful.Container) error {
To ( devopsapi . GetNodeSteps ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get steps in node." ) .
Param ( webservice . PathParameter ( "projectName" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id" ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Param ( webservice . PathParameter ( "projectName" , "the name of devops project" ) ) .
Param ( webservice . PathParameter ( "pipelineName" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build " ) ) .
Param ( webservice . PathParameter ( "nodeId" , "pipeline node id, the one node in pipeline. " ) ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( false ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . NodeSteps { } ) .
@@ -723,9 +724,9 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Consumes ( "application/x-www-form-urlencoded" ) .
Produces ( "application/json" , "charset=utf-8" ) .
Doc ( "J son to J enkinsfile. " ) .
Doc ( "Convert j son to j enkinsfile format. Usually the frontend uses json to edit jenkinsfile " ) .
Reads ( devops . ReqJson { } ) .
Returns ( http . StatusOK , RespOK , devops . NodeSteps { } ) .
Returns ( http . StatusOK , RespOK , devops . ResJenkinsfile { } ) .
Writes ( devops . ResJenkinsfile { } ) )
// match /pipeline-model-converter/toJson
@@ -734,7 +735,7 @@ func addWebService(c *restful.Container) error {
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Consumes ( "application/x-www-form-urlencoded" ) .
Produces ( "application/json" , "charset=utf-8" ) .
Doc ( "J enkinsfile to J son. " ) .
Doc ( "Convert j enkinsfile to j son format. Usually the frontend uses json to edit jenkinsfile " ) .
Reads ( devops . ReqJenkinsfile { } ) .
Returns ( http . StatusOK , RespOK , devops . ResJson { } ) .
Writes ( devops . ResJson { } ) )
@@ -743,9 +744,9 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/notifycommit" ) .
To ( devopsapi . GetNotifyCommit ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get N otify C ommit by GET HTTP method." ) .
Doc ( "Get n otification c ommit by HTTP GET method." ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . QueryParameter ( "url" , "the url for webhook to push. " ) .
Param ( webservice . QueryParameter ( "url" , "url of git scm " ) .
Required ( true ) .
DataFormat ( "url=%s" ) ) )
@@ -753,10 +754,10 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . POST ( "/devops/notifycommit" ) .
To ( devopsapi . GetNotifyCommit ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get N otify C ommit by POST HTTP method." ) .
Doc ( "Get n otify c ommit by HTTP POST method." ) .
Consumes ( "application/json" ) .
Produces ( "text/plain; charset=utf-8" ) .
Param ( webservice . QueryParameter ( "url" , "the url for webhook to push. " ) .
Param ( webservice . QueryParameter ( "url" , "url of git scm " ) .
Required ( true ) .
DataFormat ( "url=%s" ) ) )
@@ -769,12 +770,12 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{projectName}/pipelines/{pipelineName}/branches/{branchName}/runs/{runId}/nodesdetail" ) .
To ( devopsapi . GetBranchNodesDetail ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipeline nodes stages detail " ) .
Param ( webservice . PathParameter ( "pipeline Name" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "project Name" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Doc ( "Gives steps details inside a pipeline node by branch. For a Stage, the steps will include all the steps defined inside the stage. " ) .
Param ( webservice . PathParameter ( "project Name" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipeline Name" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( true ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . NodesDetail { } ) .
@@ -784,12 +785,12 @@ func addWebService(c *restful.Container) error {
webservice . Route ( webservice . GET ( "/devops/{projectName}/pipelines/{pipelineName}/runs/{runId}/nodesdetail" ) .
To ( devopsapi . GetNodesDetail ) .
Metadata ( restfulspec . KeyOpenAPITags , tags ) .
Doc ( "Get pipeline nodes stages detail " ) .
Param ( webservice . PathParameter ( "pipeline Name" , "pipeline name " ) ) .
Param ( webservice . PathParameter ( "project Name" , "devops project name " ) ) .
Param ( webservice . PathParameter ( "branchName" , "pipeline branch name " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline runs id" ) ) .
Param ( webservice . QueryParameter ( "limit" , "limit count" ) .
Doc ( "Gives steps details inside a pipeline node. For a Stage, the steps will include all the steps defined inside the stage. " ) .
Param ( webservice . PathParameter ( "project Name" , "the name of devops project. " ) ) .
Param ( webservice . PathParameter ( "pipeline Name" , "the name of pipeline, which helps to deliver continuous integration continuous deployment. " ) ) .
Param ( webservice . PathParameter ( "branchName" , "the name of branch, same as repository brnach. " ) ) .
Param ( webservice . PathParameter ( "runId" , "pipeline run id, the unique id for a pipeline once build. " ) ) .
Param ( webservice . QueryParameter ( "limit" , "the count of item limit. " ) .
Required ( true ) .
DataFormat ( "limit=%d" ) ) .
Returns ( http . StatusOK , RespOK , [ ] devops . NodesDetail { } ) .