I’m using Jenkins for builds and wanted to know if this scenario was possible. We have an external system that sends us a webhook request when a job completes (success or failure). I want a pipeline in Jenkins to run, start the request and then finish but not show status as “SUCCESS”. I want it to still be pending. Is this possible? When the webhook request comes in, I would like that to dictate on the PR in GitHub how the pipeline did. Is this possible in Jenkins? I’m seeing currentBuild.currentResult
but that doesn’t have a PENDING status. Is this not possible?
Reason for this is I want the webhook to come back and tell Jenkins for that PR whether it was a success or failure.
I read the following for this:
setting status of a build in jenkins