title: how to fix - stageResult set to FAILURE but still get success in jenkins
body: <p>I'm trying to create a very simple pipeline,
  it has one stage and one step.</p>
  
  <p>it uses the job 'build' I created as freestyle (which works) but I added an error (the parameter project name has a wrong value - 'test3' instead of 'test')</p>
  
  <p>when I ran it, it stay green and send "success" although it failed - if I enter the log I'll see this:</p>
  
  <pre><code>Running in Durability level: MAX_SURVIVABILITY
  [Pipeline] Start of Pipeline
  [Pipeline] node
  Running on Jenkins in C:\Program Files (x86)\Jenkins\workspace\pipeline testing
  [Pipeline] {
  [Pipeline] stage
  [Pipeline] { (1)
  [Pipeline] catchError
  [Pipeline] {
  [Pipeline] build (Building build)
  Scheduling project: build
  Starting building: build #62
  [Pipeline] }
  ERROR: build #62 completed with status FAILURE (propagate: false to ignore)
  [Pipeline] // catchError
  [Pipeline] }
  [Pipeline] // stage
  [Pipeline] }
  [Pipeline] // node
  [Pipeline] End of Pipeline
  Finished: SUCCESS
  </code></pre>
  
  <p>I tried using the new plugin:
  catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE')</p>
  
  <p>which as I understand is suppose to send "FAILURE" for stage and "SUCCESS" for the build as a whole.</p>
  
  <p>the stageResult doesn't work for me.</p>
  
  <p>I tried adding "propagate: true" for the "build job:"
  but it didn't help either.
  this is the pipeline itself:</p>
  
  <pre><code>pipeline {
      agent any
      stages 
      {
          stage('1') 
          {
              steps 
              {
                  catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE')
                  {
                      build job: 'build',parameters: [string(name: 'Project_Name', value: 'test3'), 
                      string(name: 'Environment_Name', value: 'Dev_Env_1')]
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>This is a really "on the point" feature for what I need but it refuses to work.
  Instead of getting a failure and continuing with the project I get success each time.</p>
  
  <p>It does continue (if I have more stages) but the issue is that I need it to be red and tell me the stage failed instead of green with success.</p>
  
  <p>I did updated my jenkins version to 2.192 
  pipeline groovy is 2.74
  and "pipeline: basic steps" plugin to 2.18</p>
  
  <p>EDIT: the solution in the end was to update all the rest of the plugins</p>