Skip to content

Commit

Permalink
Switch to the non-deprecated variable
Browse files Browse the repository at this point in the history
JENKINS-12251 deprecated `ITEM_FULLNAME` in favour of `ITEM_FULL_NAME`.. for new installs we should default to the correct variable
  • Loading branch information
stephenc committed Nov 2, 2017
1 parent 27f0abd commit ee47034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/jenkins/model/Jenkins.java
Expand Up @@ -846,7 +846,7 @@ protected Jenkins(File root, ServletContext context, PluginManager pluginManager

if (!new File(root,"jobs").exists()) {
// if this is a fresh install, use more modern default layout that's consistent with agents
workspaceDir = "${JENKINS_HOME}/workspace/${ITEM_FULLNAME}";
workspaceDir = "${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}";
}

// doing this early allows InitStrategy to set environment upfront
Expand Down

0 comments on commit ee47034

Please sign in to comment.