Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add argument to reusable yaml task

Jens Van de Waarsenburg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 8, 2023

Currently testing out reusable Bamboo yaml files. My main bamboo.yml contains the following: 

Build:
tasks: !include 'jobs/run-build.yml'
variables:
user: Admin

run-build.yml contains the follow:

tasks:
-
script:
interpreter: /bin/sh
scripts:
- scripts/build.sh
variables:
user: Default

Now is it possible to pass an argument through run-build and pass that to the scripts/build.sh call?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events