Bamboo deploy to local folder and sucess email setup help needed

We have part of our babmoo setup working, but i cannot work out the last bit!

Steps are

1) Get from repos - Done

2) Build .NET project using visual studio build - done

3) Label repos that a build has taken place

4) Copy successful build to shared folder or even local folder for that matter - HOW DO I DO THAT????

5) Email team sucess email with list of JIRA tasks that were complete - HOW DO I DO THAT?

ANy help we can get would be awesome.


2 answers

for #3, "Copy successful build",

what we do is we configure all important build result files as artifact.
then in a 'dependent' build we run a script that uses something like this:


and I guess this script could also use a command line mailer to mail build results when this 'wget' completes.

or I you could define an environment variable in your task like this:


then in a task script or build script you could copy things

cp $buildsrcdir/mybuiltfile /some/new/location

I also have certain builds send mail when they are done (Notification = All Jobs Completed) and in order to add site specific info, from the build script, I echo to stderr and the echo message is in the build result email.

echo "Build directory: $buildsrcdir" > /dev/stderr

echo "Release directory: /some/new/dir" > /dev/stderr

For the email, we call a vbs script which contains other information than what the build success email sends. This includes where to get the code to deploy, location of a report we produce, the branch/tag and some other information required by our client.

It looks like this:

Dim tag, branch, deploymentLoc, sigLine, bodyLine
tag = WScript.Arguments(1)
branch = WScript.Arguments(2)
deploymentLoc = WScript.Arguments(3)
sigLine = WScript.Arguments(4)
bodyLine = (tag) & vbcrlf & (branch) & vbcrlf & (deploymentLoc) & vbcrlf & (reportloc) & vbcrlf & vbcrlf & vbcrlf & (sigLine)

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = WScript.Arguments(0)
objMessage.From = ""
objMessage.To = ""
objMessage.TextBody = bodyLine

'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.

objMessage.Configuration.Fields.Item _
("") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("") = ""

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("") = 25


'==End remote SMTP server configuration section==


Then we pass in all the args referenced in the top

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,068 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot