diff --git a/api/src/main/java/org/terrakube/api/plugin/scheduler/job/tcl/executor/ExecutorService.java b/api/src/main/java/org/terrakube/api/plugin/scheduler/job/tcl/executor/ExecutorService.java index 78f94c647..d1ada9e73 100644 --- a/api/src/main/java/org/terrakube/api/plugin/scheduler/job/tcl/executor/ExecutorService.java +++ b/api/src/main/java/org/terrakube/api/plugin/scheduler/job/tcl/executor/ExecutorService.java @@ -106,7 +106,7 @@ public boolean execute(Job job, String stepId, Flow flow) { if(job.getOverrideBranch() == null) { executorContext.setBranch(job.getWorkspace().getBranch()); } else { - if (job.getOverrideBranch() == "remote-content") { + if (job.getOverrideBranch().equals("remote-content")) { executorContext.setShowHeader(false); } executorContext.setBranch(job.getOverrideBranch());