I have a plan with two stages, with one job in each stage (1: Build, 2:Deploy). The first stage generates four shared artefacts, and the second stage needs to deploy these four artefacts.
Both stages are performed on different machines, so are done by separate agents with appropriate capabilities. The idea is to build them on the first machine, then use the shared artefact dependencies to copy them across to the deployment machine.
When the first stage runs, it finishes successfully, and I can download all four artefacts from the job's 'Artifacts' page. Three of these artefacts are zip files created in subfolders of the job's home directory, and the fourth is an exe created directly in the job's home directory.
The second stage is configured to have all four shared artefacts as dependencies, and their destination directories are all set to be the root of the job's working directory.
When I run the plan, everything finishes successfully, but only the three zip files end up on the deployment machine in the job's working directory. The exe file is nowhere to be found.
According to the logs, all four artefacts are 'prepared' successfully:
simple 08-Aug-2013 14:56:36 Preparing artifact for use: ArtefactOne command 08-Aug-2013 14:56:36 Substituting variable: ${bamboo.buildNumber} with 30 simple 08-Aug-2013 14:56:37 Artifact ArtefactOne prepared in 0:00:00.516 simple 08-Aug-2013 14:56:37 Preparing artifact for use: ArtefactTwo simple 08-Aug-2013 14:56:37 Artifact ArtefactTwo prepared in 0:00:00.422 simple 08-Aug-2013 14:56:37 Preparing artifact for use: ArtefactThree simple 08-Aug-2013 14:56:37 Artifact ArtefactThree prepared in 0:00:00.078 simple 08-Aug-2013 14:56:37 Preparing artifact for use: ArtefactFour simple 08-Aug-2013 14:56:37 Artifact ArtefactFour prepared in 0:00:00.062
All fixed now - turns out I was missing a '$' sign for one of the variable values.
Hi,
Have you tried naming the artifact without using variables to narrow down the problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.