Skip to content

Fix panic for exec command

What does this MR do?

Fix panic for exec command

Why was this MR needed?

When the user runs gitlab-runner exec it ends up panicing because ArtifactUploader is a func and it's nil, since it's only set for multi.go. Add a check if the ArtifactUploader is set, if not simply skip the execution of the referees since there is no point in executing because we can't upload the results in the end.

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Closes #6561 (closed)

Merge request reports