Package com.cdancy.jenkins.rest.features
Interface JobsApi
-
@Path("/") public interface JobsApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamartifact(String optionalFolderPath, String jobName, int buildNumber, String relativeArtifactPath)IntegerResponsebuild(String optionalFolderPath, String jobName)BuildInfobuildInfo(String optionalFolderPath, String jobName, int buildNumber)IntegerResponsebuildWithParameters(String optionalFolderPath, String jobName, Map<String,List<String>> properties)Stringconfig(String optionalFolderPath, String jobName)booleanconfig(String optionalFolderPath, String jobName, String configXML)RequestStatuscreate(String optionalFolderPath, String jobName, String configXML)RequestStatusdelete(String optionalFolderPath, String jobName)Stringdescription(String optionalFolderPath, String jobName)booleandescription(String optionalFolderPath, String jobName, String description)booleandisable(String optionalFolderPath, String jobName)booleanenable(String optionalFolderPath, String jobName)JobInfojobInfo(String optionalFolderPath, String jobName)JobListjobList(String folderPath)RequestStatuskill(String optionalFolderPath, String jobName, int buildNumber)IntegerlastBuildNumber(String optionalFolderPath, String jobName)StringlastBuildTimestamp(String optionalFolderPath, String jobName)PipelineNodepipelineNode(String optionalFolderPath, String jobName, int buildNumber, int nodeId)PipelineNodeLogpipelineNodeLog(String optionalFolderPath, String jobName, int buildNumber, int nodeId)ProgressiveTextprogressiveText(String optionalFolderPath, String jobName, int start)ProgressiveTextprogressiveText(String optionalFolderPath, String jobName, int buildNumber, int start)booleanrename(String optionalFolderPath, String jobName, String newName)List<Workflow>runHistory(String optionalFolderPath, String jobName)RequestStatusstop(String optionalFolderPath, String jobName, int buildNumber)RequestStatusterm(String optionalFolderPath, String jobName, int buildNumber)com.google.gson.JsonObjecttestReport(String optionalFolderPath, String jobName, int buildNumber)Workflowworkflow(String optionalFolderPath, String jobName, int buildNumber)
-
-
-
Method Detail
-
jobList
@Named("jobs:get-jobs") @Path("{folderPath}api/json") @Consumes("application/json") @GET JobList jobList(@PathParam("folderPath") String folderPath)
-
jobInfo
@Named("jobs:job-info") @Path("{optionalFolderPath}job/{name}/api/json") @Consumes("application/json") @GET JobInfo jobInfo(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
buildInfo
@Named("jobs:artifact") @Path("{optionalFolderPath}job/{name}/{number}/api/json") @Consumes("application/json") @GET BuildInfo buildInfo(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber)
-
artifact
@Named("jobs:artifact") @Path("{optionalFolderPath}job/{name}/{number}/artifact/{relativeArtifactPath}") @Consumes("*/*") @GET InputStream artifact(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber, @PathParam("relativeArtifactPath") String relativeArtifactPath)
-
create
@Named("jobs:create") @Path("{optionalFolderPath}createItem") @Produces("application/xml") @Consumes("*/*") @POST RequestStatus create(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @QueryParam("name") String jobName, String configXML)
-
config
@Named("jobs:get-config") @Path("{optionalFolderPath}job/{name}/config.xml") @Consumes("text/plain") @GET String config(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
config
@Named("jobs:update-config") @Path("{optionalFolderPath}job/{name}/config.xml") @Produces("application/xml;charset=UTF-8") @Consumes("text/html") @POST boolean config(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, String configXML)
-
description
@Named("jobs:get-description") @Path("{optionalFolderPath}job/{name}/description") @Consumes("text/plain") @GET String description(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
description
@Named("jobs:set-description") @Path("{optionalFolderPath}job/{name}/description") @Consumes("text/html") @POST boolean description(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @FormParam("description") String description)
-
delete
@Named("jobs:delete") @Path("{optionalFolderPath}job/{name}/doDelete") @Consumes("text/html") @POST RequestStatus delete(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
enable
@Named("jobs:enable") @Path("{optionalFolderPath}job/{name}/enable") @Consumes("text/html") @POST boolean enable(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
disable
@Named("jobs:disable") @Path("{optionalFolderPath}job/{name}/disable") @Consumes("text/html") @POST boolean disable(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
build
@Named("jobs:build") @Path("{optionalFolderPath}job/{name}/build") @Consumes("application/unknown") @POST IntegerResponse build(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
stop
@Named("jobs:stop-build") @Path("{optionalFolderPath}job/{name}/{number}/stop") @Consumes("application/json") @POST RequestStatus stop(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber)
-
term
@Named("jobs:term-build") @Path("{optionalFolderPath}job/{name}/{number}/term") @Consumes("application/json") @POST RequestStatus term(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber)
-
kill
@Named("jobs:kill-build") @Path("{optionalFolderPath}job/{name}/{number}/kill") @Consumes("application/json") @POST RequestStatus kill(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber)
-
buildWithParameters
@Named("jobs:build-with-params") @Path("{optionalFolderPath}job/{name}/buildWithParameters") @Consumes("application/unknown") @POST IntegerResponse buildWithParameters(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @Nullable Map<String,List<String>> properties)
-
lastBuildNumber
@Named("jobs:last-build-number") @Path("{optionalFolderPath}job/{name}/lastBuild/buildNumber") @Consumes("text/plain") @GET Integer lastBuildNumber(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
lastBuildTimestamp
@Named("jobs:last-build-timestamp") @Path("{optionalFolderPath}job/{name}/lastBuild/buildTimestamp") @Consumes("text/plain") @GET String lastBuildTimestamp(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
progressiveText
@Named("jobs:progressive-text") @Path("{optionalFolderPath}job/{name}/lastBuild/logText/progressiveText") @Consumes("text/plain") @GET ProgressiveText progressiveText(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @QueryParam("start") int start)
-
progressiveText
@Named("jobs:progressive-text") @Path("{optionalFolderPath}job/{name}/{number}/logText/progressiveText") @Consumes("text/plain") @GET ProgressiveText progressiveText(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber, @QueryParam("start") int start)
-
rename
@Named("jobs:rename") @Path("{optionalFolderPath}job/{name}/doRename") @Consumes("text/html") @POST boolean rename(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @QueryParam("newName") String newName)
-
runHistory
@Named("jobs:run-history") @Path("{optionalFolderPath}job/{name}/wfapi/runs") @Consumes("application/json") @GET List<Workflow> runHistory(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName)
-
workflow
@Named("jobs:workflow") @Path("{optionalFolderPath}job/{name}/{number}/wfapi/describe") @Consumes("application/json") @GET Workflow workflow(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber)
-
pipelineNode
@Named("jobs:pipeline-node") @Path("{optionalFolderPath}job/{name}/{number}/execution/node/{nodeId}/wfapi/describe") @Consumes("application/json") @GET PipelineNode pipelineNode(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber, @PathParam("nodeId") int nodeId)
-
pipelineNodeLog
@Named("jobs:pipeline-node-log") @Path("{optionalFolderPath}job/{name}/{number}/execution/node/{nodeId}/wfapi/log") @Consumes("application/json") @GET PipelineNodeLog pipelineNodeLog(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber, @PathParam("nodeId") int nodeId)
-
testReport
@Named("jobs:testReport") @Path("{optionalFolderPath}job/{name}/{number}/testReport/api/json") @Consumes("application/json") @GET com.google.gson.JsonObject testReport(@Nullable @PathParam("optionalFolderPath") String optionalFolderPath, @PathParam("name") String jobName, @PathParam("number") int buildNumber)
-
-