Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47286

Support skipping stages in scripted pipelines for nice visualization in blue ocean and classic UI stage view

      Created as response to comments of https://issues.jenkins-ci.org/browse/JENKINS-37781 as the visualization of skipped stages is very, very nice for declarative pipelines in Blue Ocean.

      1. Allow to skip stages in scripted pipelines leading to equally nice visualization in Blue Ocean: The current approaches mentioned by mkobit in https://issues.jenkins-ci.org/browse/JENKINS-37781?focusedCommentId=294965&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-294965 and jamesdumay in https://issues.jenkins-ci.org/browse/JENKINS-37781?focusedCommentId=294966&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-294966 lead to either misleading or just less obvious visualization...
      2. Improve visualization of stage view: instead of showing skipped stages (declarative pipelines) as always being green and allegedly executed, make them e.g. gray.

          [JENKINS-47286] Support skipping stages in scripted pipelines for nice visualization in blue ocean and classic UI stage view

          Reinhold Füreder created issue -
          Reinhold Füreder made changes -
          Assignee Original: Paul Horvath [ paul8620 ]
          Reinhold Füreder made changes -
          Link New: This issue is related to JENKINS-37781 [ JENKINS-37781 ]
          Reinhold Füreder made changes -
          Attachment New: classic-ui-stage-view-1.png [ 39945 ]
          Reinhold Füreder made changes -
          Description Original: Created as response to comments of https://issues.jenkins-ci.org/browse/JENKINS-37781 as the visualization of skipped stages is very, very nice for declarative pipelines in Blue Ocean.
           # Allow to skip stages in scripted pipelines leading to equally nice visualization in Blue Ocean: The current approaches mentioned by [~mkobit] in https://issues.jenkins-ci.org/browse/JENKINS-37781?focusedCommentId=294965&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-294965 and [~jamesdumay] in https://issues.jenkins-ci.org/browse/JENKINS-37781?focusedCommentId=294966&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-294966 lead to either misleading or just less obvious visualization...
           # Improve visualization of stage view: instead of showing skipped stages (declarative pipelines) as always being green and executed, make them gray.
           ** This is IMHO also an IMHO major enhancement and valid fix for the other problem reported by [~mkobit] in https://issues.jenkins-ci.org/browse/JENKINS-37781?focusedCommentId=294965&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-294965: "[The Pipeline Stage View Plugin] has some weird display issues if new pipelines have different stage executions than previous ones."
          New: Created as response to comments of https://issues.jenkins-ci.org/browse/JENKINS-37781 as the visualization of skipped stages is very, very nice for declarative pipelines in Blue Ocean.
           # Allow to skip stages in scripted pipelines leading to equally nice visualization in Blue Ocean: The current approaches mentioned by [~mkobit] in https://issues.jenkins-ci.org/browse/JENKINS-37781?focusedCommentId=294965&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-294965 and [~jamesdumay] in https://issues.jenkins-ci.org/browse/JENKINS-37781?focusedCommentId=294966&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-294966 lead to either misleading or just less obvious visualization...
           # Improve visualization of stage view: instead of showing skipped stages (declarative pipelines) as always being green and allegedly executed, make them e.g. gray.
           ** Stage "skipped" is actually skipped, but stage view shows: !classic-ui-stage-view-1.png|thumbnail!
           ** This is IMHO also an IMHO major enhancement and valid fix for the other problem reported by [~mkobit] in https://issues.jenkins-ci.org/browse/JENKINS-37781?focusedCommentId=294965&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-294965: "[The Pipeline Stage View Plugin] has some weird display issues if new pipelines have different stage executions than previous ones."

          James Dumay added a comment -

          Hi there,
          As I mentioned on JENKINS-37781, we won't be adding the skipped feature to Pipeline Script. There are some features we intend that will remain to be Pipeline and Blue Ocean only.

          However, if someone from the community wants to pick this up and work on it, please reopen and assign this to yourself.

          Thanks,
          James

          James Dumay added a comment - Hi there, As I mentioned on JENKINS-37781 , we won't be adding the skipped feature to Pipeline Script. There are some features we intend that will remain to be Pipeline and Blue Ocean only. However, if someone from the community wants to pick this up and work on it, please reopen and assign this to yourself. Thanks, James
          James Dumay made changes -
          Resolution New: Postponed [ 6 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Ben Dean added a comment -

          jamesdumay are scripted pipelines deprecated or something? Why is declarative prefered? I would really like to have the ability to use a when clause on stages in scripted pipeline, for the very same reasons people use it in declarative.

          Ben Dean added a comment - jamesdumay are scripted pipelines deprecated or something? Why is declarative prefered? I would really like to have the ability to use a when clause on stages in scripted pipeline, for the very same reasons people use it in declarative.

          Bill Hamilton added a comment -

          jdumay I want to throw in my support to this:
          1)The ability to skip a stage is very common in our organization. A repo with many branches might want to skip various stages (deployment, testing) for certain branches. They can obviously do nothing, but again this is misleading in the pipeline view since it looks like to performed the stage (just really really fast)
          2)This support needs to be in scripted as well as declarative. You guys know that scripted is alive and well right? And sometimes, the only option....

          Bill Hamilton added a comment - jdumay I want to throw in my support to this: 1)The ability to skip a stage is very common in our organization. A repo with many branches might want to skip various stages (deployment, testing) for certain branches. They can obviously do nothing, but again this is misleading in the pipeline view since it looks like to performed the stage (just really really fast) 2)This support needs to be in scripted as well as declarative. You guys know that scripted is alive and well right? And sometimes, the only option....

          Jordi Riera added a comment -

          Hello,

          Could you detail why the reasons the `skipped` feature would be only declarative? I always struggle with choosing between using declarative and scripted, but I most of the time end up with using scripted as our pipelines are pretty complex here. 

          I would be interested to see this feature in scripted for sure.

          Jordi Riera added a comment - Hello, Could you detail why the reasons the `skipped` feature would be only declarative? I always struggle with choosing between using declarative and scripted, but I most of the time end up with using scripted as our pipelines are pretty complex here.  I would be interested to see this feature in scripted for sure.

            Unassigned Unassigned
            reinholdfuereder Reinhold Füreder
            Votes:
            10 Vote for this issue
            Watchers:
            42 Start watching this issue

              Created:
              Updated:
              Resolved: