jenkinsci / jenkinsci/parameterized-trigger-plugin

[JENKINS-57974] If you do need to escape '$', use '$'.

Open
#766 0 comments 0 reactions 0 assignees View on GitHub
component:parameterized-trigger-plugin imported-jira-issue jira-type:task priority:minor resolution:unresolved
Dominant language
Java
Stars
77
Forks
174
Avg merge
22h 27m
Merged PRs (30d)
1

Description


  1. install the Jenkins Parameterized Trigger plugin (2.35.2)

  2. create a freestyle job

  3. click Add build step

  4. click Trigger/call builds on [sic] other projects

  5. click Add Parameters

  6. click Restrict matrix execution to a subset

  7. click

  8. read the bottom of the help:

However, Jenkins variable expansion leaves undefined variables as-is, so most of the time your Groovy string line expression syntax will survive the expansion, get passed to Groovy as-is, and work as expected. If you do need to escape '$', use '$'.


Expected results: the two things should presumably be different.

The relevant code is:

https://github.com/jenkinsci/parameterized-trigger-plugin/blob/55f8d5b10f00164a090972f8af89794acddf870b/src/main/resources/hudson/plugins/parameterizedtrigger/matrix/MatrixSubsetBuildParameters/help-filter.html#L20

If you do need to escape '$', use '$$'. 

I'm not going to fix this right away. Filing it because I found it while reading the help for everything and I'm punting as I'm not quite sure about the fix.

---
Originally reported by jsoref, imported from: If you do need to escape '$', use '$'.


  • status: Open
  • priority: Minor
  • component(s): parameterized-trigger-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue


  1. install the Jenkins Parameterized Trigger plugin (2.35.2)

  2. create a freestyle job

  3. click Add build step

  4. click Trigger/call builds on [sic] other projects

  5. click Add Parameters

  6. click Restrict matrix execution to a subset

  7. click

  8. read the bottom of the help:

However, Jenkins variable expansion leaves undefined variables as-is, so most of the time your Groovy string line expression syntax will survive the expansion, get passed to Groovy as-is, and work as expected. If you do need to escape '$', use '$'.


Expected results: the two things should presumably be different.

The relevant code is:

https://github.com/jenkinsci/parameterized-trigger-plugin/blob/55f8d5b10f00164a090972f8af89794acddf870b/src/main/resources/hudson/plugins/parameterizedtrigger/matrix/MatrixSubsetBuildParameters/help-filter.html#L20



If you do need to escape '$', use '$$'. 


I'm not going to fix this right away. Filing it because I found it while reading the help for everything and I'm punting as I'm not quite sure about the fix.

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.