jenkinsci / github-autostatus-plugin

Jenkins plugin to provide automatic status for multibranch jobs
https://plugins.jenkins.io/github-autostatus/
MIT License
52 stars 34 forks source link

Issues with catchError and NOT_BUILT #91

Open awiddersheim opened 4 years ago

awiddersheim commented 4 years ago

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.