-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins version 2.46.2
Using Declarative Pipeline set environment:
environment {
TEST="$WORKSPACE/test"
...
SPEC='linux_x86-64'
}
works fine on linux.
On Windows
WORKSPACE=C:\Users\jenkins\workspace\openjdk_test_x86-64_windows
TEST will be C:Usersjenkinsworkspaceopenjdk_test_x86-64_windows/test. That is saying passing $WORKSPACE to toString() return discard all backslashes.
Tried using slash string TEST=/$WORKSPACE/ +'/test' got same issue.
- depends on
-
JENKINS-42753 Generate runtime model directly from AST model
-
- Closed
-
[JENKINS-44482] Environment variable replacement on WINDOWS discard backslashes
Epic Link | New: JENKINS-35390 [ 171183 ] |
Component/s | New: pipeline-model-definition-plugin [ 21706 ] | |
Component/s | Original: pipeline [ 21692 ] |
Labels | Original: pipeline windows | New: declarative-variable-and-method-resolution pipeline windows |
Assignee | New: Andrew Bayer [ abayer ] |
Epic Link | Original: JENKINS-35390 [ 171183 ] |
New:
|
Link |
New:
This issue depends on |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |