Skip to content

Commit

Permalink
Fix workdir (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfespa17 authored Feb 27, 2024
1 parent 776f55f commit 68dff10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void setupConsumerGroups(String jobId) {
private File getTerraformWorkingDir(TerraformJob terraformJob, File workingDirectory) throws IOException {
File terraformWorkingDir = workingDirectory;
try {
if (!terraformJob.getBranch().equals("remote-content")) {
if (!terraformJob.getBranch().equals("remote-content") || (terraformJob.getFolder() != null && !terraformJob.getFolder().equals("/"))) {
terraformWorkingDir = new File(workingDirectory.getCanonicalPath() + terraformJob.getFolder());
}
} catch (IOException e) {
Expand Down

0 comments on commit 68dff10

Please sign in to comment.