Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
Windows
-
-
Pipeline - December
Description
I got the following in my jenkins file:
pipeline {
agent any
environment {
SOURCE = "${env.WORKSPACE}
mydirectory"
// The above is not working? WORKSPACE is null as you can see later.
HTDOCS = "C:\\Apache24\\htdocs
"
}
stages {
stage('Prepare') {
steps {
echo "WORKSPACE ${env.WORKSPACE}" // correct
echo "SOURCE ${env.SOURCE}" // wrong, is set to null\myDirectoy
echo "INEW_HTDOCS ${env.INEW_HTDOCS}" // correct
}
}
....
Attachments
Issue Links
- duplicates
-
JENKINS-41748 Environment variables cross references aren't supported
-
- Closed
-
- is duplicated by
-
JENKINS-41623 Variable Expansion in Global Variables Not Occurring
-
- Closed
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | pipeline-model-definition-plugin [ 21706 ] | |
Component/s | pipeline [ 21692 ] |
Link |
This issue duplicates |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Assignee | Andrew Bayer [ abayer ] | |
Resolution | Duplicate [ 3 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Status | Reopened [ 4 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Remote Link | This issue links to "PR #110 (Web Link)" [ 15421 ] |
Link |
This issue is duplicated by |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | In Review [ 10005 ] |
Sprint | Pipeline - December [ 446 ] |
Rank | Ranked lower |
Remote Link | This issue links to "CloudBees Internal OSS-1974 (Web Link)" [ 18489 ] |
Status | In Review [ 10005 ] | In Progress [ 3 ] |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Open [ 1 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Reopening - while working on
JENKINS-41748, I realized that this will still be a problem there, since we don't actually have a WORKSPACE yet at the time we do environment variable resolution.