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 Sign up to answer
Community showcase
Published 11 hours ago in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

94 views 1 13
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