jenkinsci / jenkinsci/git-plugin

[JENKINS-17899] Add support for Token Macro expansion to GIT plugin

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

Description

The GIT plugin currently only supports build parameter expansion and not the other tokens, leading to a dichotomy whereby it provides token-macro supported tokens but it will not resolve them.

The most critical sign of this is where either slave local environment variables or folder level environment variables (when using the CloudBees Folders plugin) are not evaluated during SCM polling, and as such the polling never triggers... though there are other edge cases.

---
Originally reported by stephenconnolly, imported from: Add support for Token Macro expansion to GIT plugin


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

Raw content of original issue

The GIT plugin currently only supports build parameter expansion and not the other tokens, leading to a dichotomy whereby it provides token-macro supported tokens but it will not resolve them.

The most critical sign of this is where either slave local environment variables or folder level environment variables (when using the CloudBees Folders plugin) are not evaluated during SCM polling, and as such the polling never triggers... though there are other edge cases.

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.