jenkinsci / jenkinsci/postbuild-task-plugin

[JENKINS-17268] Post build task plugin: Passing arguments does not work as documented

Open
#46 6 comments 0 reactions 0 assignees View on GitHub
component:postbuild-task-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
8
Forks
19
Avg merge
38m
Merged PRs (30d)
1

Description

The plugin info says:



References %1, .. %n are allowed, and will be replaced by the groups matched by the Regex. %0 is the whole match.

The documentation says:



If the text is "Total time: (\d+)" and the script is "script.sh", then if the log contains a line "Total time: 10", the "script.sh 4" will be called.

Neither works. When using %0, %1 etc., %0 becomes the path to a temporary batch file that seems to be used to call the script, e.g., C:\Users\\AppData\Local\Temp\hudson2844785260200969554.bat.

---
Originally reported by marco_eckstein, imported from: Post build task plugin: Passing arguments does not work as documented


  • status: Open
  • priority: Major
  • component(s): postbuild-task-plugin
  • resolution: Unresolved
  • votes: 5
  • watchers: 8
  • imported: 20251223-222157

Raw content of original issue

The plugin info says:



References %1, .. %n are allowed, and will be replaced by the groups matched by the Regex. %0 is the whole match.

The documentation says:



If the text is "Total time: (\d+)" and the script is "script.sh", then if the log contains a line "Total time: 10", the "script.sh 4" will be called.

Neither works. When using %0, %1 etc., %0 becomes the path to a temporary batch file that seems to be used to call the script, e.g., C:\Users\<User>\AppData\Local\Temp\hudson2844785260200969554.bat.

environment

```
Jenkins ver. 1.454

Windows
```

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.