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

archiveArtifacts not properly displayed in declarative pipeline with matrix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: blueocean-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.249.2
    • Similar Issues:

      Description

      stage('BuildAndTest') {
          matrix {
              agent { label 'windows' }
              axes {
                  axis {
                      name 'TOOL'
                      values 'x', 'y'
                  }
              }
              stages {
                  stage('Capshe') {
                      steps {
                      }
                  }
                  stage('Build') {
      
                      steps {}
                  }
                  stage('UI Tests') {
                      steps {}
                  }
                  stage('Archive') {
                      steps {
                          archiveArtifacts "${TOOL}/*"
                      }
                  }
                  stage('Analyse') {
                      steps {}
                  }
              }
          }
      }
      

      Placing archiveArtifacts outside of the Matrix:

        Attachments

          Activity

          benbrummer Benjamin Brummer created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Component/s blueocean-plugin [ 21481 ]
          Component/s core [ 15593 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            benbrummer Benjamin Brummer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: