I have tried to learn how to configure this with online searches (including this forum). None of what I found has solved my problem. If only there was clear, step by step dociumentation.
Anyway.
I have a build job that retrieves source from a Git repository, builds using MsBuild, and attempts to download the output artifact for later use by Deployment.
Compile is successful, the output exists but the job fails on artifact download with, "directory does not exist". But, the directory does exist only it is empty.
Here is what I hope is enough information to get started:
Git Repository: MbcsCentral
Directory Structure:
C:\Users\Administrator\bamboo-home\xml-data\build-dir\MBCSCEN-BETA-JOB1\MbcsCentral\bin\debug
Project: MbcsCentral
Build Job: Dev
Artifact Definition
Name: MbcsCentral Artifact
Copy Pattern: /target/MbcsCentral/bin/debug/MbcsCentral.exe
Shared: yes
Default Stage -> Default Job
Step: MsBuild
Executable: MsBuild 4.0
Project File: MbcsCentral/MbcsCentral.csproj
Step: Artifact Download
Artifact Name: MbcsCentral Artifact
Destination Path: /target/MbcsCentral/bin/debug/
At completion of job the directory, C:\Users\Administrator\bamboo-home\artifacts\MBCSCEN-BETA\shared\build-00014\MbcsCentral-Artifact, exists but is empty
Build Log:
build 05-Jan-2014 13:23:02 "C:\Users\Administrator\bamboo-home\xml-data\build-dir\MBCSCEN-BETA-JOB1\MbcsCentral\MbcsCentral.csproj" (default target) (1) ->
build 05-Jan-2014 13:23:02 "C:\Users\Administrator\bamboo-home\xml-data\build-dir\MBCSCEN-BETA-JOB1\MbcsCentral\lbo5cxlm.tmp_proj" (_CompileTemporaryAssembly target) (2) ->
build 05-Jan-2014 13:23:02 (CoreCompile target) ->
build 05-Jan-2014 13:23:02 DataMigration\frmProgress.xaml.cs(424,13): warning CS1522: Empty switch block [C:\Users\Administrator\bamboo-home\xml-data\build-dir\MBCSCEN-BETA-JOB1\MbcsCentral\lbo5cxlm.tmp_proj]
build 05-Jan-2014 13:23:02
build 05-Jan-2014 13:23:02
build 05-Jan-2014 13:23:02 "C:\Users\Administrator\bamboo-home\xml-data\build-dir\MBCSCEN-BETA-JOB1\MbcsCentral\MbcsCentral.csproj" (default target) (1) ->
build 05-Jan-2014 13:23:02 DataMigration\frmProgress.xaml.cs(424,13): warning CS1522: Empty switch block [C:\Users\Administrator\bamboo-home\xml-data\build-dir\MBCSCEN-BETA-JOB1\MbcsCentral\MbcsCentral.csproj]
build 05-Jan-2014 13:23:02
build 05-Jan-2014 13:23:02 9 Warning(s)
build 05-Jan-2014 13:23:02 0 Error(s)
build 05-Jan-2014 13:23:02
build 05-Jan-2014 13:23:02 Time Elapsed 00:00:20.11
simple 05-Jan-2014 13:23:02 Finished task 'MSBuild'
simple 05-Jan-2014 13:23:02 Starting task 'MbcsCentral Output' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
simple 05-Jan-2014 13:23:02 Preparing to download plan result MBCSCEN-BETA-14 artifact: Shared artifact: [MbcsCentral Artifact], pattern: [/target/MbcsCentral/bin/debug/MbcsCentral.exe]
error 05-Jan-2014 13:23:02 C:\Users\Administrator\bamboo-home\artifacts\MBCSCEN-BETA\shared\build-00014\MbcsCentral-Artifact is not a directory
error 05-Jan-2014 13:23:02 Unable to download artifact Shared artifact: [MbcsCentral Artifact], pattern: [/target/MbcsCentral/bin/debug/MbcsCentral.exe]
simple 05-Jan-2014 13:23:02 Task configuration:
simple 05-Jan-2014 13:23:02 sourcePlanKey -> [MBCSCEN-BETA]
simple 05-Jan-2014 13:23:02 artifactName_0 -> [MbcsCentral Artifact]
simple 05-Jan-2014 13:23:02 artifactId_0 -> [1146881]
simple 05-Jan-2014 13:23:02 localPath_0 -> [/target/MbcsCentral/bin/debug/]
simple 05-Jan-2014 13:23:02 Task runtime configuration:
simple 05-Jan-2014 13:23:02 resultKey -> [MBCSCEN-BETA-14]
simple 05-Jan-2014 13:23:02 securityToken -> [23d0bea6ce339440164496d7b89ea1f976f2a249]
simple 05-Jan-2014 13:23:02 artifactName_0 -> [MbcsCentral Artifact]
simple 05-Jan-2014 13:23:02 artifactPattern_0 -> [/target/MbcsCentral/bin/debug/MbcsCentral.exe]
simple 05-Jan-2014 13:23:02 runtimeArtifactIds_0 -> [0]
simple 05-Jan-2014 13:23:02 artifactId_0 -> [1146881]
simple 05-Jan-2014 13:23:02 localPath_0 -> [/target/MbcsCentral/bin/debug/]
simple 05-Jan-2014 13:23:02 artifactLocation_0 -> []
simple 05-Jan-2014 13:23:02 Finished task 'MbcsCentral Output'
simple 05-Jan-2014 13:23:02 Running post build plugin 'NCover Results Collector'
simple 05-Jan-2014 13:23:02 Running post build plugin 'Clover Results Collector'
simple 05-Jan-2014 13:23:02 Running post build plugin 'Artifact Copier'
simple 05-Jan-2014 13:23:03 Publishing an artifact: MbcsCentral Artifact
error 05-Jan-2014 13:23:03 Unable to publish artifact [MbcsCentral Artifact]:
simple 05-Jan-2014 13:23:03 Finished publishing of artifact Shared artifact: [MbcsCentral Artifact], pattern: [/target/MbcsCentral/bin/debug/MbcsCentral.exe] in 0s
simple 05-Jan-2014 13:23:03 Finalising the build...
simple 05-Jan-2014 13:23:03 Stopping timer.
simple 05-Jan-2014 13:23:03 Build MBCSCEN-BETA-JOB1-14 completed.
simple 05-Jan-2014 13:23:03 Running on server: post build plugin 'NCover Results Collector'
simple 05-Jan-2014 13:23:03 Running on server: post build plugin 'Clover Delta Calculator'
simple 05-Jan-2014 13:23:03 Running on server: post build plugin 'Build Hanging Detection Configuration'
simple 05-Jan-2014 13:23:03 Running on server: post build plugin 'Maven Dependencies Postprocessor'
simple 05-Jan-2014 13:23:03 All post build plugins have finished
simple 05-Jan-2014 13:23:03 Generating build results summary...
simple 05-Jan-2014 13:23:03 Saving build results to disk...
simple 05-Jan-2014 13:23:03 Indexing build results...
simple 05-Jan-2014 13:23:03 Finished building MBCSCEN-BETA-JOB1-14.