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

    Constructors
    Constructor
    Description
    BitbucketServerEndpoint(com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint endpoint, io.jenkins.blueocean.rest.Reachable parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doDelete(org.kohsuke.stapler.StaplerResponse resp)
     
     
     
    io.jenkins.blueocean.rest.hal.Link
     
     
    org.kohsuke.stapler.HttpResponse
    Validates this server endpoint.

    Methods inherited from class io.jenkins.blueocean.rest.model.Resource

    getLinks, getState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BitbucketServerEndpoint

      public BitbucketServerEndpoint(com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint endpoint, io.jenkins.blueocean.rest.Reachable parent)
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in class io.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
    • getName

      public String getName()
      Specified by:
      getName in class io.jenkins.blueocean.rest.impl.pipeline.scm.ScmServerEndpoint
    • getApiUrl

      public String getApiUrl()
      Specified by:
      getApiUrl in class io.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)