Skip to content

Commit fb4c5cb

Browse files
committed
aborting step with failure when no credentials
1 parent af28efc commit fb4c5cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/browserstack/automate/ci/jenkins/pipeline/BrowserStackPipelineStepExecution.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public boolean start() throws Exception {
5555
if (credentials == null) {
5656
logError(logger, "Credentials id is invalid. Aborting!!!");
5757
tracker.sendError("No Credentials Available", true, "PipelineExecution");
58-
return false;
58+
context.onFailure(new Exception("No Credentials Available"));
59+
return true;
5960
}
6061

6162
if (credentials.hasUsername() && credentials.hasAccesskey()) {

0 commit comments

Comments
 (0)