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

archiveArtifacts not properly displayed in declarative pipeline with matrix

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • blueocean-plugin
    • None
    • Jenkins 2.249.2

    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

          There are no comments yet on this issue.

          People

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

            Dates

              Created:
              Updated: