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

archiveArtifacts not properly displayed in declarative pipeline with matrix

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • Jenkins 2.249.2

      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:

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

              Created:
              Updated: