You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-3997] Parameter expansion in Custom Workspace #18900
I created a new job and changed the workspace to a custom location by specifying
a different location. In my case I set the path to:
/tmp/hudsonBuilds/MyJob/${BUILD_ID}
Expected Result:
There will be a directory tree '/tmp/hudsonBuilds/MyJob/yyy-m-dd_hh-mm-ss'
created to reflect the current $BUILD_ID.
Current Result:
There is a directory tree which looks like
'/tmp/hudsonBuilds/MyJob/${BUILD_ID}'. The environment variable doesn't get
expanded.
The WORKSPACE environment variable instead has the correct path with expanded
BUILD_ID variable.
I created a new job and changed the workspace to a custom location by specifying
a different location. In my case I set the path to:
/tmp/hudsonBuilds/MyJob/${BUILD_ID}
Expected Result:
There will be a directory tree '/tmp/hudsonBuilds/MyJob/yyy-m-dd_hh-mm-ss'
created to reflect the current $BUILD_ID.
Current Result:
There is a directory tree which looks like
'/tmp/hudsonBuilds/MyJob/${BUILD_ID}'. The environment variable doesn't get
expanded.
The WORKSPACE environment variable instead has the correct path with expanded
BUILD_ID variable.
Code changed in hudson
User: : kohsuke
Path:
trunk/hudson/main/core/src/main/java/hudson/model/AbstractBuild.java
trunk/hudson/main/core/src/main/java/hudson/model/FreeStyleBuild.java
trunk/hudson/main/test/src/test/java/hudson/model/FreeStyleProjectTest.java
trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=22922
Log:
[FIXED JENKINS-3997] Custom workspace is now subject to to the variable expansion. This will be in 1.330.
Code changed in hudson
User: : kohsuke
Path:
trunk/hudson/main/core/src/main/java/hudson/model/AbstractBuild.java
trunk/hudson/main/core/src/main/java/hudson/model/FreeStyleBuild.java
trunk/hudson/main/test/src/test/java/hudson/model/FreeStyleProjectTest.java
trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=22922
Log: [FIXED JENKINS-3997] Custom workspace is now subject to to the variable expansion. This will be in 1.330.
I guess this change should also solve an exception printed to log when aborting
a build that was still waiting for a hung polling task:
Building remotely on ...
Build was aborted
Archiving artifacts
Recording test results
FATAL: null
java.lang.NullPointerException
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:569)
at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:111)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:501)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:487)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:475)
at hudson.model.Build$RunnerImpl.post2(Build.java:181)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:459)
at hudson.model.Run.run(Run.java:1143)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)
I guess this change should also solve an exception printed to log when aborting
a build that was still waiting for a hung polling task:
Building remotely on ...
Build was aborted
Archiving artifacts
Recording test results
FATAL: null
java.lang.NullPointerException
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:569)
at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:111)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:501)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:487)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:475)
at hudson.model.Build$RunnerImpl.post2(Build.java:181)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:459)
at hudson.model.Run.run(Run.java:1143)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)
Activity
jenkins-infra-bot commentedon Jul 8, 2009
mdonohue:
Raw content of original comment:
Cleaning up bug metadata and simplifying the summary.
jenkins-infra-bot commentedon Sep 17, 2009
dlindner:
Raw content of original comment:
I'm also interested in this functionality, especially the JOB_NAME
jenkins-infra-bot commentedon Oct 15, 2009
dlindner:
Raw content of original comment:
Created an attachment (id=951)
Minimal, but invasive patch for this issue
jenkins-infra-bot commentedon Oct 19, 2009
Raw content of original comment:
Code changed in hudson
User: : kohsuke
Path:
trunk/hudson/main/core/src/main/java/hudson/model/AbstractBuild.java
trunk/hudson/main/core/src/main/java/hudson/model/FreeStyleBuild.java
trunk/hudson/main/test/src/test/java/hudson/model/FreeStyleProjectTest.java
trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=22922
Log:
[FIXED JENKINS-3997] Custom workspace is now subject to to the variable expansion. This will be in 1.330.
jenkins-infra-bot commentedon Nov 2, 2009
Raw content of original comment:
I guess this change should also solve an exception printed to log when aborting
a build that was still waiting for a hung polling task:
Building remotely on ...
Build was aborted
Archiving artifacts
Recording test results
FATAL: null
java.lang.NullPointerException
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:569)
at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:111)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:501)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:487)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:475)
at hudson.model.Build$RunnerImpl.post2(Build.java:181)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:459)
at hudson.model.Run.run(Run.java:1143)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)
jenkins-infra-bot commentedon Nov 6, 2009
Raw content of original comment:
jenkins-infra-bot commentedon Nov 24, 2025
[Original
is_duplicated_byfrom Jira: JENKINS-4789]jenkins-infra-bot commentedon Nov 24, 2025
[Original
is_duplicated_byfrom Jira: JENKINS-5077]