Why does artifact publish take a long time in Bamboo?

609 Views Asked by At

We are using Bamboo to build our code, create artifacts, and deploy.

Problem Scenario

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.

Here is an example log statement:

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 

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.

This is very consistent. I can view many previous builds and it is consistently taking 8 or 9 minutes.

Fixed Scenario

I just edited the plan and disabled 2 of the jobs. Now the artifact publish step is taking a mere number of seconds:

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

Questions

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?

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.

I don't see anything special in the documentation, 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.

EDIT:

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?

0

There are 0 best solutions below