title: Why does artifact publish take a long time in Bamboo?
body: <p>We are using Bamboo to build our code, create artifacts, and deploy.</p>
  <h3>Problem Scenario</h3>
  <p>I have a plan that has a stage with 3 jobs (dev/test/prod).  The jobs build the code and publish a 16-20Mb Artifact as a shared artifact.  When I run this plan, the publish takes 8-9 minutes for all 3 jobs.  The publish is happening at approximately the same timestamp for all 3 jobs.</p>
  <p>Here is an example log statement:</p>
  <pre><code>simple  10-Sep-2021 13:46:15    Publishing an artifact: Preview Artifact
  simple  10-Sep-2021 13:55:09    Finished publishing of artifact Required shared artifact: [Preview Artifact], pattern: [**/Artifact.*.zip] in 8.897 min 
  </code></pre>
  <p>I went onto the build server (Windows Server 2012) and viewed the artifact file in the work directory and in the artifacts directory.  They are indeed almost 9 minutes apart with file timestamps.</p>
  <p>This is very consistent.  I can view many previous builds and it is consistently taking 8 or 9 minutes.</p>
  <h3>Fixed Scenario</h3>
  <p>I just edited the plan and disabled 2 of the jobs.  Now the artifact publish step is taking a mere number of seconds:</p>
  <pre><code>27-Sep-2021 15:20:19    Publishing an artifact: Preview Artifact
  27-Sep-2021 15:20:56    Finished publishing of artifact Required shared artifact: [Preview Artifact], pattern: [**/Artifact.*.zip] in 37.06 s
  </code></pre>
  <h3>Questions</h3>
  <p>Why is the artifact publish so slow when I run concurrent jobs?  What is bamboo doing during the publish job step that could take so long?</p>
  <p>I have 20 other build plans (that do not use concurrent jobs) in which the artifact copy takes less than a minute.  I have never seen this problem with any of these other plans.</p>
  <p>I don't see anything special in <a href="https://confluence.atlassian.com/bamboo/configuring-a-job-s-build-artifacts-289277071.html" rel="nofollow noreferrer">the documentation</a>, nor can I find a problem like this when I search Google and Stack Overflow.  I need the artifact to be shared because I use it in a Deployment project.</p>
  <p><strong>EDIT:</strong></p>
  <p>Now that I think of it, 37 seconds is way too long as well.  I just copied the file manually and it took about a second.  Why is it taking so long even without concurrent jobs?</p>