-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: copyartifact-plugin
-
None
I have a pipeline that, in case of failure (pointed bythe junit xml), it should compare with the previous successful build. Problem is, `selector: lastSuccessful()` is bringing the last completed run, not the last run marked as "Success".
The pipeline has the following code:
Â
```
    stage('Get last execution results') {
      steps {
        script
      }
    }
```
Â
And the current list of runs of the pipeline is:

I was expecting that `lastSuccessful() `would bring the file from build #82, but it is bringing the one from #85, even if that run is marked as Unstable.