archiveArtifacts not properly displayed in declarative pipeline with matrix

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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:

        1. image-2020-10-22-22-23-27-742.png
          25 kB
          Benjamin Brummer
        2. image-2020-10-22-22-32-29-041.png
          12 kB
          Benjamin Brummer

            Assignee:
            Unassigned
            Reporter:
            Benjamin Brummer
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: