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

I can view my sequential declarative pipeline stages in the pipeline visualization plugin

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Blue Ocean 1.8.0

      For Declarative 1.3 (JENKINS-46809), we're adding support for sequential groups of stages, either as part of a set of parallel stages or on its own in a top-level stage. I won't bother going into all the rationale behind it. =) See the Declarative PR for the relevant changes, examples, discussion, etc.

      This will require changes for both visualization and the editor:

      • Visualization - see my pathetic attempts at mockups attached here. jamesdumay probably will come up with something better in like five seconds. =)
      • Editor - Should be something like we have for parallel stages - reordering would be good too.

          [JENKINS-49050] I can view my sequential declarative pipeline stages in the pipeline visualization plugin

          Will this also work for "Scripted Pipeline syntax" or do one need to start migrating all "scripted" scripts to "declarative"?

          Carel Combrink added a comment - Will this also work for "Scripted Pipeline syntax" or do one need to start migrating all "scripted" scripts to "declarative"?

          Olivier Lamy added a comment -

          carelc it's only supported with declarative

          Olivier Lamy added a comment - carelc it's only supported with declarative

          Stephan Vedder added a comment - - edited

          nicu i did look at the jenkinsfile you've linked above very closely, but i can't spot any differences. The "Build" and "Test" stage are directly in a stages block, just like your sequential stages (here). The nesting doesn't seem to be different in any way or did i miss sth?

          Stephan Vedder added a comment - - edited nicu i did look at the jenkinsfile you've linked above very closely, but i can't spot any differences. The "Build" and "Test" stage are directly in a stages block, just like your sequential stages ( here ). The nesting doesn't seem to be different in any way or did i miss sth?

          Andrew Bayer added a comment -

          Yeah, feliwir’s Jenkinsfile looks right to me - here’s how the stages are laid out:

          Continuous (children are parallel) ->
            Windows (children are sequential) ->
              Build
              Test
            Linux (children are sequential) ->
              Build
              Test
              Coverage
            MemCheck (children are sequential) ->
              Build
              Memcheck 
            Android (children are sequential) ->
              Build
            iOS (children are sequential) ->
              Build
          

          It’s a valid Jenkinsfile and should render correctly. feliwir, could you please open a new JIRA for this and include your Jenkinsfile there? Thanks.

          Andrew Bayer added a comment - Yeah, feliwir ’s Jenkinsfile looks right to me - here’s how the stages are laid out: Continuous (children are parallel) -> Windows (children are sequential) -> Build Test Linux (children are sequential) -> Build Test Coverage MemCheck (children are sequential) -> Build Memcheck Android (children are sequential) -> Build iOS (children are sequential) -> Build It’s a valid Jenkinsfile and should render correctly. feliwir , could you please open a new JIRA for this and include your Jenkinsfile there? Thanks.

          Stephan Vedder added a comment - I've create the new issue: abayer nicu See https://issues.jenkins-ci.org/browse/JENKINS-53048

          Looks awesome! Thanks a lot!

          Mathias Hasselmann added a comment - Looks awesome! Thanks a lot!

          Olivier Lamy added a comment -

          horangs any Jenkinsfile to reproduce that?

          Olivier Lamy added a comment - horangs any Jenkinsfile to reproduce that?

          Hokwang Lee added a comment - - edited

          nicu and abayer

           

          Today I can test this visualization, and it shows me like below. Nice works.

          But there's one big concern.

          In my pipeline code,

          stage('Parallel') : it really does not have meaning.

          stage('Feature A') and stage('Feature B') and stage('Feature C') : now there's no way to see, (it means sequential actions group(type) name)

          but this is more important and user should be aware of it.

           

          How do you think of this? And please let me know related issue number if exists. Or not, can I create new issue for this?

           

          Thank you.

          Hokwang Lee added a comment - - edited nicu and abayer   Today I can test this visualization, and it shows me like below. Nice works. But there's one big concern. In my pipeline code, stage('Parallel') : it really does not have meaning. stage('Feature A') and stage('Feature B') and stage('Feature C') : now there's no way to see, (it means sequential actions group(type) name) but this is more important and user should be aware of it.   How do you think of this? And please let me know related issue number if exists. Or not, can I create new issue for this?   Thank you.

          Hokwang Lee added a comment -

          olamy Oh, please forget it, now I guess there's no problem. Please look at my comment anyway upside.

          Hokwang Lee added a comment - olamy Oh, please forget it, now I guess there's no problem. Please look at my comment anyway upside.

          horangs see JENKINS-53127. Unfortunately nobody triaged that issue yet.

          Also much more important: JENKINS-53547

          Mathias Hasselmann added a comment - horangs see  JENKINS-53127 . Unfortunately nobody triaged that issue yet. Also much more important:  JENKINS-53547

            nicu Nicolae Pascu
            abayer Andrew Bayer
            Votes:
            18 Vote for this issue
            Watchers:
            40 Start watching this issue

              Created:
              Updated:
              Resolved: