title: Archiving artifacts with same name
body: <p>I'm using <em>declarative pipeline</em> as Jenkins job.
  Stages 'Build' and 'Archive' run both in <em>parallel</em> to build and gather artifacts from nodes of different platforms (linux 32 &amp; 64, windows, etc...)</p>
  
  <p>Unfortunately, the artifacts are all of the same name. I cannot archive multiple <code>mylib.so</code> in a single pipeline job. Or can I?</p>
  
  <p>Well, in the case of Windows the library will be a <code>.dll</code> and so there is a difference, but that cannot be an overall solution to this.</p>
  
  <p>Is there a way to distinguish between artifacts built by several nodes?</p>
  
  <p>My pipeline looks similar to this:</p>
  
  <pre><code>pipeline {
      agent none
      stages {
          stage('Build') {
              parallel {
                  stage('Build on some Linux x64') {
                      agent { node { label 'linux_64' } }
                      steps {
                          // call make
                      }
                  }
                  stage('Build some more...') { ... }
              }
          }
          stage('Archive') {
              parallel {
                  stage('Archive from Linux x64') {
                      agent { node { label 'linux_64' } }
                      steps {
                          archive includes: 'out/*.so'
                      }
                  }
                  stage('Archive some more...') { ... }
              }
          }
      }
  }
  </code></pre>
  
  <p>I've also seen <a href="https://issues.jenkins-ci.org/browse/JENKINS-44148" rel="nofollow noreferrer">this</a>, so there may be nothing directly out-of-the-box.</p>