Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21185

Add repository browser url to ENV

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • git-plugin
    • None

      Since you have some logic to build the links to the commits in various web UIs, it would be nice if this was available as an ENV variable that other scripts could use.

      Namely, I'm trying to fill out the 'url' parameter in the source_commit endpoint for Pivotal Tracker. My current solution is adding an option to our script like `--browser-url http://gitlab.internal/owner/repo/commit/%s`, which is formatted with the GIT_COMMIT variable already supplied by this plugin.

            Unassigned Unassigned
            mikewyatt Mike Wyatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: