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

Add support for WorkflowPipelineView to JobDSL

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Currently JobDSL plugin does not support creating delivery pipeline views which are based on Jenkins pipeline jobs.

      The pipeline delivery plugin has added support for such views two years ago (https://issues.jenkins-ci.org/browse/JENKINS-34040) but the job dsl plugin still misses that support.

        Attachments

          Activity

          Hide
          daspilker Daniel Spilker added a comment -

          https://github.com/Diabol/delivery-pipeline-plugin/pull/304
          https://github.com/jenkinsci/job-dsl-plugin/pull/1200

          These two pull requests will enable Dynamic DSL support:

          folder('example-folder') {
            views {
              workflowPipelineView {
                name('example-view')
                allowAbort(true)
                allowPipelineStart(true)
                description('test')
                linkToConsoleLog(true)
                maxNumberOfVisiblePipelines(8)
                noOfColumns(12)
                noOfPipelines(7)
                showAbsoluteDateTime(true)
                showChanges(true)
                sorting('se.diabol.jenkins.pipeline.sort.NameComparator')
                updateInterval(100)
                componentSpecs {
                  componentSpec {
                    name('example')
                    job('example-pipeline')
                  }
                }
              }
            }
          }
          
          Show
          daspilker Daniel Spilker added a comment - https://github.com/Diabol/delivery-pipeline-plugin/pull/304 https://github.com/jenkinsci/job-dsl-plugin/pull/1200 These two pull requests will enable Dynamic DSL support: folder( 'example-folder' ) { views { workflowPipelineView { name( 'example-view' ) allowAbort( true ) allowPipelineStart( true ) description( 'test' ) linkToConsoleLog( true ) maxNumberOfVisiblePipelines(8) noOfColumns(12) noOfPipelines(7) showAbsoluteDateTime( true ) showChanges( true ) sorting( 'se.diabol.jenkins.pipeline.sort.NameComparator' ) updateInterval(100) componentSpecs { componentSpec { name( 'example' ) job( 'example-pipeline' ) } } } } }
          Hide
          yoosiba Jakub Siberski added a comment -

          I've just spend a day trying to figure out my jobdsl config for WorkflowPipelineView is not working, without realising `deliveryPipelineView` is not the way.

          Daniel Spilker since other two PRs you have linked are merged is there anything else blocking this issue?

          Show
          yoosiba Jakub Siberski added a comment - I've just spend a day trying to figure out my jobdsl config for WorkflowPipelineView is not working, without realising `deliveryPipelineView` is not the way. Daniel Spilker since other two PRs you have linked are merged is there anything else blocking this issue?
          Hide
          daspilker Daniel Spilker added a comment -

          The change in Delivery Pipeline plugin has not been released yet. Pinging Patrik Boström.

          Show
          daspilker Daniel Spilker added a comment - The change in Delivery Pipeline plugin has not been released yet. Pinging Patrik Boström .

            People

            Assignee:
            patbos Patrik Boström
            Reporter:
            dmarkhas Dan Markhasin
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: