jenkinsci / jenkinsci/parameterized-trigger-plugin

[JENKINS-56954] After upgrade to 2.164.1 from 2.150.3 injecting from file with absolute path does not work

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

Description

We use ${TMP}\Jenkins\${BUILD_TAG}_inject.inp to point to a file in the "Inject environment variables" and "Parameters from properties file". Eg the path ${TMP} is absolute.

This has always worked and the "Inject environment variables" still works. But after upgrading to Jenkins 2.164.1 "Parameters from properties file" reports an this error:

[EnvInject] - Injecting environment variables from a build step.

[EnvInject] - Injecting as environment variables the properties file path 'c:/temp/Jenkins/jenkins- Build Installer 1.6-82_inject.inp'

[EnvInject] - Variables injected successfully.

ERROR: Build step failed with exception

java.lang.IllegalArgumentException: Only a relative path is supported, the given path is absolute: c:/temp/Jenkins/jenkins Build Installer 1.6-82_inject.inp/

---
Originally reported by nih, imported from: After upgrade to 2.164.1 from 2.150.3 injecting from file with absolute path does not work


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

Raw content of original issue

We use ${TMP}\Jenkins\${BUILD_TAG}_inject.inp to point to a file in the "Inject environment variables" and "Parameters from properties file". Eg the path ${TMP} is absolute.

This has always worked and the "Inject environment variables" still works. But after upgrading to Jenkins 2.164.1 "Parameters from properties file" reports an this error:
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties file path 'c:/temp/Jenkins/jenkins- Build Installer 1.6-82_inject.inp'
[EnvInject] - Variables injected successfully.
ERROR: Build step failed with exception
java.lang.IllegalArgumentException: Only a relative path is supported, the given path is absolute: c:/temp/Jenkins/jenkins Build Installer 1.6-82_inject.inp/

environment

```
Jenkins 2.164.1

Google Chrome

Job is run on slave
```

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.