- 
    
Improvement
 - 
    Resolution: Fixed
 - 
    
Major
 - 
    Jenkins ver. 2.138.2
 
I try to improve visualization for pipeline.
I want skip stage and mark skip stage as skip.
But using Skripted Pipeline i must approve signature.
staticMethod org.jenkinsci.plugins.pipeline.modeldefinition.Utils markStageSkippedForConditional java.lang.String
Using it:
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils map_dev = ["dev", "qa", "stage" ,"perf"] prodPromoter = null map_dev.each { stage("${it}") { try{ prodPromoter = input(message: "Deploy ${it}") } catch(e){ Utils.markStageSkippedForConditional("${it}") } } }
I now that i can using Declarative Pipeline like this:
when {
 expression {
   try {
    devPromoter = input(message: "Deploy")
   } catch(e) {
     return false
   }
  }
 }
 steps { }
BUT, Could you please just add Utils.markStageSkippedForConditional to @whitelist ?
Because Scripted pipleine more readable and flexible for me...
Thank you for advance!
- relates to
 - 
                    
JENKINS-47286 Support skipping stages in scripted pipelines for nice visualization in blue ocean and classic UI stage view
-         
 - Closed
 
 -         
 
- links to