Can a common environment be inherited in multiple tasks? Edited

I am trying to setup a plan for our weather model development project.    The first stage of the plan clones and builds multiple executables.  I want to build each executable in a separate task.  I am creating the tasks with inline scripting.  The challenge I am facing is that I need to be able to set the environment by loading a number of modules and do not know how to do this in a uniform way.   The way I do this now is to load the modules in the inline script for each task, i.e.

module load intel/xe_2017.1.043
module load hdf5/1.8.19-parallel
module load p4est/2.0

make -j32 fcst_model 

Is there a way to do this in a single location within the plan or job and have each task inherit that environment?

Thanks.

1 answer

This widget could not be displayed.

Either create a a file that you later source in all your script tasks or create a Bamboo Spec for your plan. Bamboo Spec will let you reuse that part of a script wherever you want.

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 Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

124 views 2 0
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