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

Github PR Status Using Retry Options #77

Closed shaharon closed 4 years ago

shaharon commented 4 years ago

I got a declarative Jenkinsfile set to use "retry option", and while stage command failed on first try, Github PR status it set to failed despite the fact that command is passed on second or third attempts.

Example:

stage('Stage1') { options { retry(3) } steps { sh 'some-command' } }

shaharon commented 4 years ago

Anyone?

jeffpearce commented 4 years ago

I'll take a look.

jeffpearce commented 4 years ago

Hi @shaharon - can you let me know whether it's working with the 3.6.1 release? I didn't fix it intentionally, but I reworked the way the code determines statuses, and I'm now unable to repro it

shaharon commented 4 years ago

@jeffpearce - Thanks for that, currently use 3.6.0, will upgrade to 3.6.1 and let you know.

shaharon commented 4 years ago

@jeffpearce - Looks great using version 3.6.1. Thanks!