[JIRA] (JENKINS-44148) Add ability to have artifacts with the same name in parallel pipeline stages

6 views
Skip to first unread message

abe.sabbagh@enbridge.com (JIRA)

unread,
Jan 29, 2020, 2:23:03 PM1/29/20
to jenkinsc...@googlegroups.com
Abe S commented on Improvement JENKINS-44148
 
Re: Add ability to have artifacts with the same name in parallel pipeline stages

Still a problem with Jenkins 2.204.2, Pipeline 2.6. This is a bit of a deal breaker at the moment. I am using a matrix build with declarative pipeline like so:

pipeline {
  agent any
  stages {
    stage('Build') {
      matrix {
        agent { dockerfile true }
        axes {
          axis {
            name 'AREA'
            values 'dev', 'test', 'prod'
          }
        }
        stages {
          stage('Build') {
            steps {
              sh "AREA=${AREA}"
              sh 'mvn clean install package'
            }
          }
        }
        post {
          always{
            archiveArtifacts artifacts: '**/target/rpm/**/*.rpm'
          }
        }
      }
    }
  }
}

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jenkins@gavinmogan.com (JIRA)

unread,
Feb 6, 2020, 7:10:03 PM2/6/20
to jenkinsc...@googlegroups.com

jenkins@gavinmogan.com (JIRA)

unread,
Feb 6, 2020, 7:11:04 PM2/6/20
to jenkinsc...@googlegroups.com
Gavin Mogan updated an issue
Change By: Gavin Mogan
Labels: archiveArtifacts declarative scripted

jenkins@gavinmogan.com (JIRA)

unread,
Feb 6, 2020, 7:11:05 PM2/6/20
to jenkinsc...@googlegroups.com
Gavin Mogan updated an issue
Change By: Gavin Mogan
Labels: pipeline-matrix-equivalency archiveArtifacts declarative
Reply all
Reply to author
Forward
0 new messages