• Declarative backlog

        [JENKINS-40986] Matrix structure for Declarative Pipeline

        Arthur Lutz created issue -
        James Dumay made changes -
        Component/s New: pipeline-model-definition-plugin [ 21706 ]
        James Dumay made changes -
        Component/s Original: blueocean-plugin [ 21481 ]

        James Dumay added a comment -

        arthurlutz would something like this solve the matrix capability you are looking for?

        pipeline {
          stages {
            stage(‘browser tests’) {
              matrix {
                variants {
                  variant (‘firefox’) {
                    agent { node “linux+firefox” }
              	    environment { key: value }
                  }
                  variant ('chrome') {
                    agent { node 'linux+chrome' }
              	    environment { key: value }
                  }
              	}
                environment { … }
                stages { … }
              }
            }
        }
        

        James Dumay added a comment - arthurlutz would something like this solve the matrix capability you are looking for? pipeline { stages { stage(‘browser tests’) { matrix { variants { variant (‘firefox’) { agent { node “linux+firefox” } environment { key: value } } variant ( 'chrome' ) { agent { node 'linux+chrome' } environment { key: value } } } environment { … } stages { … } } } }
        Andrew Bayer made changes -
        Assignee New: Andrew Bayer [ abayer ]
        Andrew Bayer made changes -
        Link New: This issue relates to JENKINS-41334 [ JENKINS-41334 ]
        Andrew Bayer made changes -
        Link New: This issue relates to JENKINS-27395 [ JENKINS-27395 ]
        James Dumay made changes -
        Epic Link New: JENKINS-45425 [ 183593 ]
        James Dumay made changes -
        Summary Original: Extend Declarative Pipeline so that it has the matrix capability New: Matrix structure for Declarative Pipeline
        Andrew Bayer made changes -
        Link New: This issue relates to JENKINS-46809 [ JENKINS-46809 ]

          bitwiseman Liam Newman
          arthurlutz Arthur Lutz
          Votes:
          32 Vote for this issue
          Watchers:
          43 Start watching this issue

            Created:
            Updated:
            Resolved: