sourcing environment in bamboo task?

I am a newbie using bamboo, I want to create a scenario like this:

1. Source a schell scripts to setup environment paths and generate tools

2. Used the generated tools and paths created in step 1. to run a command.

Since each task is run in a seperate shell seems like, step 2 is unaware of step one so its environment is clean from generated tools and environment variables in steup 1. So how do I do this?

thanks in advance.

1 answer

1 accepted

This widget could not be displayed.

There isn't any way to source the environment so that all tasks use the sourced environment right now unless you call all your build commands within the one script task.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 3 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

19 views 0 2
Join discussion

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