Skip to content

Commit

Permalink
Update path handling one more time
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schüth committed Sep 4, 2017
1 parent e8bdd95 commit d627a56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ protected void configure() {
String dataPath = "/opt/jenkins-slave/" + nodeName + "-data-" + dataPathPostfix;
// Ensure that the folder is created upfront. This is important to keep the uid and gids correct.
// Otherwise the folder would be created by docker using root.
new File(dataPath).mkdirs();

if (clearDataFolders) {
try {
Expand All @@ -131,6 +130,7 @@ protected void configure() {
fail("Could not setup bind folder {" + dataPath + "}");
}
}
new File(dataPath).mkdirs();

addFileSystemBind(dataPath, "/data", BindMode.READ_WRITE);
if (initCluster) {
Expand Down

0 comments on commit d627a56

Please sign in to comment.