jenkinsci / jenkinsci/git-plugin

[JENKINS-21185] Add repository browser url to ENV

Open
#2,396 1 comment 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue priority:trivial resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

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.

---
Originally reported by mikewyatt, imported from: Add repository browser url to ENV


  • status: Open
  • priority: Trivial
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-02

Raw content of original issue

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.