title: How to color stage to green if it was successful on the second retry?
body: <p>I faced a problem during building my pipeline job.
  I have some stages and one of them contains "retry" block. Something like this:</p>
  
  <pre><code>stage "1"
  stage "other job call"
  node{
      def job
      retry(3)
          {
              job = build job: 'Called job', parameters:
                          [
                              [$class: 'StringParameterValue', name: 'Branch', value: "Branch"],
                          ];
          }
      }
  }
  
  stage "2"
  </code></pre>
  
  <p>So, another job is called and it is successfully built from the second time. But the stage is colored to red, despite it was successful:
  <a href="https://i.stack.imgur.com/1ggBq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1ggBq.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/5zrdR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5zrdR.png" alt="enter image description here"></a></p>
  
  <p>How to color this stage to green?</p>