Class BitbucketEnvVarExtension

java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.plugins.git.extensions.GitSCMExtension>
hudson.plugins.git.extensions.GitSCMExtension
com.cloudbees.jenkins.plugins.bitbucket.impl.extension.BitbucketEnvVarExtension
All Implemented Interfaces:
Describable<hudson.plugins.git.extensions.GitSCMExtension>

public class BitbucketEnvVarExtension extends hudson.plugins.git.extensions.GitSCMExtension
  • Constructor Details

    • BitbucketEnvVarExtension

      @DataBoundConstructor public BitbucketEnvVarExtension(@Nullable String owner, @NonNull String repository, @Nullable String projectKey, @NonNull String serverURL)
  • Method Details

    • populateEnvironmentVariables

      public void populateEnvironmentVariables(hudson.plugins.git.GitSCM scm, Map<String,String> env)
      Contribute additional environment variables about the target branch. Since source branch could be from a forked repository, for which the credentials in use are not allowed to do nothing, is discarded.
      Overrides:
      populateEnvironmentVariables in class hudson.plugins.git.extensions.GitSCMExtension
      Parameters:
      scm - GitSCM used as reference
      env - environment variables to be added
    • getOwner

      public String getOwner()
    • getRepository

      public String getRepository()
    • getProjectKey

      public String getProjectKey()
    • getServerURL

      public String getServerURL()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object