Class BitbucketServerEndpoint
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
io.jenkins.blueocean.blueocean_bitbucket_pipeline.server.BitbucketServerEndpoint
- All Implemented Interfaces:
io.jenkins.blueocean.rest.Reachable
public class BitbucketServerEndpoint
extends io.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
- Author:
- Vivek Pandey
-
Field Summary
Fields inherited from class io.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
API_URL, ID, NAME
-
Constructor Summary
ConstructorDescriptionBitbucketServerEndpoint
(com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint endpoint, io.jenkins.blueocean.rest.Reachable parent) -
Method Summary
Methods inherited from class io.jenkins.blueocean.rest.model.Resource
getLinks, getState
-
Constructor Details
-
BitbucketServerEndpoint
public BitbucketServerEndpoint(com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint endpoint, io.jenkins.blueocean.rest.Reachable parent)
-
-
Method Details
-
getId
- Specified by:
getId
in classio.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
-
getName
- Specified by:
getName
in classio.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
-
getApiUrl
- Specified by:
getApiUrl
in classio.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
-
getLink
public io.jenkins.blueocean.rest.hal.Link getLink() -
validate
@GET @WebMethod(name="validate") public org.kohsuke.stapler.HttpResponse validate()Validates this server endpoint. Checks availability and version requirement.- Returns:
- If valid HttpStatus 200, if unsupported version then 428 and if unreachable then 400 error code is returned.
-
doDelete
@WebMethod(name="") @DELETE public void doDelete(org.kohsuke.stapler.StaplerResponse resp)
-