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
-
-
Constructor Summary
Constructors Constructor Description BitbucketServerEndpoint(com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint endpoint, io.jenkins.blueocean.rest.Reachable parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doDelete(org.kohsuke.stapler.StaplerResponse resp)
String
getApiUrl()
String
getId()
io.jenkins.blueocean.rest.hal.Link
getLink()
String
getName()
org.kohsuke.stapler.HttpResponse
validate()
Validates this server endpoint.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in classio.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
-
getName
public String getName()
- Specified by:
getName
in classio.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
-
getApiUrl
public String 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)
-
-