jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-42875] Durable Task 1.13 breaks env vars expressions contributed by EnvInject

Open
#383 6 comments 0 reactions 0 assignees View on GitHub
component:durable-task-plugin component:envinject-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
30
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Thanks to the magic in the code, it appears EnvInject can contribute env vars to script steps in Pipeline. However, Durable Task 1.13 breaks some use-cases like nested variables (e.g. "MYVAR=$MYVAR:123" see the changelog).


  • EnvInject really injects job properties in this case using some non-trivial logic. I didn't notice that routine during the code review

  • Upgrade to Durable task 1.13 breaks the use-case

  • Upgrade to "Pipeline Nodes and Processes Plugin" 2.10 does not resolve the issue

Though EnvInject does not support Pipeline, the root cause of this issue needs to be investigated and maybe fixed. Likely the fix should be applied on the EnvInject side according to my initial investigation.

---
Originally reported by oleg_nenashev, imported from: Durable Task 1.13 breaks env vars expressions contributed by EnvInject


  • status: Open
  • priority: Major
  • component(s): durable-task-plugin, envinject-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 2025-12-09

Raw content of original issue

Thanks to the magic in the code, it appears EnvInject can contribute env vars to script steps in Pipeline. However, Durable Task 1.13 breaks some use-cases like nested variables (e.g. "MYVAR=$MYVAR:123" see the changelog).


  • EnvInject really injects job properties in this case using some non-trivial logic. I didn't notice that routine during the code review

  • Upgrade to Durable task 1.13 breaks the use-case

  • Upgrade to "Pipeline Nodes and Processes Plugin" 2.10 does not resolve the issue

Though EnvInject does not support Pipeline, the root cause of this issue needs to be investigated and maybe fixed. Likely the fix should be applied on the EnvInject side according to my initial investigation.

environment

```
EnvInject 1.93.1

Durable Task 1.13

```

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.