The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Git Collect Plugin

collectGit: Git Collect: Register Local Data

  • browser (optional)

    The browser the changelog links are built with, the same ones the Git SCM offers. Each one asks for the URL of the repository on its web frontend, without the commit part that Jenkins adds itself.

    (Auto) guesses it from the remote: a github.com, gitlab.com or bitbucket.org remote gets its own frontend, a remote shaped like a Gerrit (its host name, an /a/ clone path, a plugins/gitiles path, or the SSH port 29418) is linked with the gitiles URLs, and anything else with the GitHub ones.

    A browser set here wins over Browser URL, which in turn wins over the guess. Use Browser URL for the two Gerrit forms, and a browser here for the frontends whose links cannot be derived from a URL alone.

      Nested Choice of Objects
    • assembla
      • repoUrl : String
        Specify the root URL serving this repository (such as https://www.assembla.com/code/PROJECT/git/).
    • $class: 'BacklogGitRepositoryBrowser'
      • repoName : String
      • repoUrl : String
    • bitbucketServer
      • repoUrl : String
        Specify the Bitbucket Server root URL for this repository (such as https://bitbucket:7990/OWNER/REPO/).
    • bitbucket
      • repoUrl : String
        Specify the root URL serving this repository (such as https://bitbucket.org/OWNER/REPO/).
    • cgit
      • repoUrl : String
        Specify the root URL serving this repository (such as https://cgit.example.com:port/group/REPO/).
    • fisheye
      • repoUrl : String
        Specify the URL of this repository in FishEye (such as https://fisheye.example.com/browse/project/).
    • gitblit
      • repoUrl : String
        Specify the root URL serving this repository.
      • projectName : String
        Specify the name of the project in GitBlit.
    • $class: 'GitBucketBrowser'
      • url : String
    • gitLab
      • repoUrl : String
        Specify the root URL serving this repository (such as https://gitlab.com/username/repository/).
      • version : String (optional)
        Specify the major and minor version of GitLab you use (such as 9.1). If you don't specify a version, a modern version of GitLab (>= 8.0) is assumed.
    • gitLabBrowser
      Specify the HTTP URL for this project's GitLab page so that links to changes can be automatically generated by Jenkins. The URL needs to include the owner and project. If the GitLab server is https://gitLab.example.com then the URL for bob's skunkworks project might be https://gitLab.example.com/bob/skunkworks.
      • projectUrl : String
        Specify the HTTP URL for this project's GitLab page. The URL needs to include the owner and project so, for example, if the GitLab server is https://gitLab.example.com then the URL for bob's skunkworks project might be https://gitLab.example.com/bob/skunkworks
    • gitList
      • repoUrl : String
        Specify the root URL serving this repository (such as https://gitlist.example.com/repo/).
    • gitWeb
      • repoUrl : String
        Specify the root URL serving this repository (such as https://github.com/jenkinsci/jenkins.git).
    • $class: 'GiteaBrowser'
      • repoUrl : String
        Specify the HTTP URL for this repository's Gitea page. The URL needs to include the owner and repository so, for example, if the Gitea server is https://gitea.example.com then the URL for bob's skunkworks project repository might be https://gitea.example.com/bob/skunkworks
    • github
      • repoUrl : String
        Specify the HTTP URL for this repository's GitHub page (such as https://github.com/jquery/jquery).
    • gitiles
      • repoUrl : String
        Specify the root URL serving this repository (such as https://gwt.googlesource.com/gwt/).
    • $class: 'GitoriousWeb'
      • repoUrl : String
        Specify the root URL serving this repository (such as https://gitorious.org/gitorious/mainline).
    • gogs
      • repoUrl : String
        Specify the root URL serving this repository (such as https://gogs.example.com/username/some-repo-url.git).
    • kiln
      • repoUrl : String
        Specify the root URL serving this repository (such as https://khanacademy.kilnhg.com/Code/Website/Group/webapp).
    • phabricator
      • repoUrl : String
        Specify the phabricator instance root URL (such as https://phabricator.example.com).
      • repo : String
        Specify the repository name in phabricator (such as the foo part of phabricator.example.com/diffusion/foo/browse).
    • redmine
      • repoUrl : String
        Specify the root URL serving this repository (such as https://redmine.example.com/PATH/projects/PROJECT/repository).
    • rhodeCode
      • repoUrl : String
        Specify the HTTP URL for this repository's RhodeCode page (such as https://rhodecode.example.com/projects/PROJECT/repos/REPO/).
    • $class: 'ScmManagerGitRepositoryBrowser'
      • repoUrl : String
        Specify the root URL serving this repository (such as https://scm-manager.org/scm/repo/namespace/name).
    • jbSpace
      • repoUrl : String
        Provide the absolute URL to your repository in JetBrains SpaceCode in the following format: https://<your SpaceCode instance>/p/<project key>/repositories/<repository name>
    • $class: 'Stash'
      • repoUrl : String
        Specify the HTTP URL for this repository's Stash page (such as https://stash.example.com/projects/PROJECT/repos/REPO/).
    • teamFoundation
      • repoUrl : String
        Either the name of the remote whose URL should be used, or the URL of this module in TFS (such as https://tfs.example.com/tfs/PROJECT/_git/REPO/). If empty (default), the URL of the "origin" repository is used.

        If TFS is also used as the repository server, this can usually be left blank.

    • $class: 'TracGitRepositoryBrowser'
      • $class: 'TuleapBrowser'
        Specify the HTTPS URL for the Tuleap Git repository so that links to changes can be automatically generated by Jenkins.
        • repositoryUrl : String
          The URL is the web URL of the Tuleap Git repository.
      • viewgit
        • repoUrl : String
          Specify the root URL serving this repository (such as https://git.example.com/viewgit/).
        • projectName : String
          Specify the name of the project in ViewGit (e.g. scripts, scuttle etc. from https://code.fealdia.org/viewgit/).
    • browserUrl : String (optional)
    • changelog : boolean (optional)
    • markedCommit : String (optional)
    • path : String (optional)
    • remote : String (optional)

    Was this page helpful?

    Please submit your feedback about this page through this quick form.

    Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

        


    See existing feedback here.