Forums

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

Dinamic Env var

Martin Hermosilla
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!
October 25, 2018

Hi,

 

I was wondering if bitbucket pipelines supports command substitution like this:

 

pipelines:
branches:
development:
- step:
caches:
- maven
script:
- mvn -B -s settings.xml -Dmaven.test.skip=true clean install $([ ! -z ${SOME_MAVEN_PROFILE} ] && echo "-P ${SOME_MAVEN_PROFILE}")

Basically is this expression allowed?:

$([ ! -z ${SOME_MAVEN_PROFILE} ] && echo "-P ${SOME_MAVEN_PROFILE}")

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events