Wednesday, 15 January 2014

Download Artifacts from Bamboo Ondemand -



Download Artifacts from Bamboo Ondemand -

i trying build , deploy .net web application using bamboo ondemand. built struggling find way deploy artifacts 1 of our internal server. , cant open firewall.

i tried bamboo cli's getartifact command download specified file, not entire package. not find way zip artifacts ondemand utilize above command.

if has overcome similar situation, please help. clue/advise appreciated. thanks.

there few ways accomplish this, here couple. both options require have zip tool available on server zipping. utilize 7za.exe (command line version of 7zip)

this file checked repository bamboo downloads sources , can access scripts or msbuild

1 - add together script task after build task. run powershell inline script similar this:

start-process -filepath "bamboo.build.working.directory\7za.exe" -argumentlist "a","pathtoyourarchive.zip", "foldertozip\*" -nonewwindow -wait

add script task zips build output, , drops in location configure build artifact.

2 - customize release build configuration in msbuild zipping

modify .csproj file, , uncomment afterbuild target. utilize exec task launch 7za, or utilize custom task such msbuild extension pack

1 faster option, best practice set scripting ps1 file source controlled, , modify script phone call ps1 file. way can version build code.

bamboo jira-ondemand

No comments:

Post a Comment