Skip to content

Commit

Permalink
small fixes in logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alfespa17 committed Dec 19, 2023
1 parent 65d2431 commit 9422d5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ public boolean execute(Job job, String stepId, Flow flow) {
if(job.getOverrideBranch() == null) {
executorContext.setBranch(job.getWorkspace().getBranch());
} else {
if (job.getOverrideBranch() == "remote-content") {
executorContext.setShowHeader(false);
}
executorContext.setBranch(job.getOverrideBranch());
}
executorContext.setFolder(job.getWorkspace().getFolder());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ RunsData createRun(RunsData runsData) throws SchedulerException, ParseException
if(workspace.getVcs() != null){
log.warn("Workspace is using VCS connection, overriding vcs source and branch to run job using a remote plan");
job.setOverrideBranch("remote-content");
job.setOverrideBranch(sourceTarGz);
job.setOverrideSource(sourceTarGz);
}
job = jobRepository.save(job);
log.info("Job Created");
Expand Down

0 comments on commit 9422d5a

Please sign in to comment.