Class PipelineVcs


  • public class PipelineVcs
    extends Object
    VCS information for the pipeline.
    • Constructor Detail

      • PipelineVcs

        public PipelineVcs()
    • Method Detail

      • getProviderName

        public String getProviderName()
        Name of the VCS provider (e.g. GitHub, Bitbucket).
        Returns:
        providerName
      • setProviderName

        public void setProviderName​(String providerName)
      • originRepositoryUrl

        public PipelineVcs originRepositoryUrl​(String originRepositoryUrl)
      • getOriginRepositoryUrl

        public String getOriginRepositoryUrl()
        URL for the repository where the trigger originated. For fork-PR pipelines, this is the URL to the fork. For other pipelines the `origin_` and `target_repository_url`s will be the same.
        Returns:
        originRepositoryUrl
      • setOriginRepositoryUrl

        public void setOriginRepositoryUrl​(String originRepositoryUrl)
      • targetRepositoryUrl

        public PipelineVcs targetRepositoryUrl​(String targetRepositoryUrl)
      • getTargetRepositoryUrl

        public String getTargetRepositoryUrl()
        URL for the repository the trigger targets (i.e. the repository where the PR will be merged). For fork-PR pipelines, this is the URL to the parent repo. For other pipelines, the `origin_` and `target_repository_url`s will be the same.
        Returns:
        targetRepositoryUrl
      • setTargetRepositoryUrl

        public void setTargetRepositoryUrl​(String targetRepositoryUrl)
      • getRevision

        public String getRevision()
        The code revision the pipeline ran.
        Returns:
        revision
      • setRevision

        public void setRevision​(String revision)
      • getBranch

        @Nullable
        public String getBranch()
        The branch where the pipeline ran. The HEAD commit on this branch was used for the pipeline. Note that `branch` and `tag` are mutually exclusive.
        Returns:
        branch
      • setBranch

        public void setBranch​(String branch)
      • getTag

        @Nullable
        public String getTag()
        The tag used by the pipeline. The commit that this tag points to was used for the pipeline. Note that `branch` and `tag` are mutually exclusive.
        Returns:
        tag
      • setTag

        public void setTag​(String tag)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object