how to fix - stageResult set to FAILURE but still get success in jenkins
问题 I'm trying to create a very simple pipeline, it has one stage and one step. 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') when I ran it, it stay green and send "success" although it failed - if I enter the log I'll see this: Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in C:\Program Files (x86)\Jenkins\workspace