jenkinsci / jenkinsci/github-autostatus-plugin

Issues with catchError and NOT_BUILT

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
58
Forks
38
PR merge metrics
No merged PRs in 30d

Description

After #87 things are working much better but I do have some code that will do something like this:

```
catchError(buildResult: null, stageResult: 'NOT_BUILT') {
echo 'Skipping static analysis'

sh 'exit 1'
}
```

This results in the stage being stuck in a `Pending` state in GitHub. Personally, I think these should get considered as successful or I guess just not considered at all when determining stage state.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.