Details
-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
7.2.1
-
None
-
1
-
Severity 3 - Minor
-
Description
Issue Summary
When using more than one stage, with jobs creating artifacts, and environments being triggered by those stages, the release will fail.
Steps to Reproduce
- Create a plan with two stages.
- In each stage, have a job that generates one artifact. Let's call these:
- StageA -> JobA -> ArtifactA
- StageB -> JobB -> ArtifactB
- Create a Deployment project with two environments. Each environment will have a trigger after a successful stage, and will download each artifact. Looking like this:
- EnvironmentA -> Triggered by StageA -> Downloading ArtifactA
- EnvironmentB -> Triggered by StageB -> Downloading ArtifactB
Finally, run the plan.
Expected Results
Both environments will be deployed.
Actual Results
The second environment will fail to deploy. In the deployment log we will see
Unable to download artifact Non required shared artifact: [ArtifactB], pattern: [artifactB.txt]
In the server logs you will see:
[AbstractArtifactManager] Unable to retrieve artifact ArtifactB for PR-PL7-11 via com.atlassian.bamboo.build.artifact.ServerLocalArtifactHandler@140386c6 No matching Artifact found.
Workaround
Manually deploy EnvironmentB again, creating a new release.