Forums

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

Not able to read injected result scope variable in the next stages using shell/bash

Abhijith Komarla
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!
March 21, 2019

hi all,

Bamboo version  6.3.2

I have injected a variable using the task Inject Bamboo variables, scope set as Result.

My properties file had only one value which i could see from the logs got inserted successfully.

but when I am trying to read the variable in the next stage, I am getting either an empty string or 'bad substitution'.

 

I am trying to read it from inline scripts as below.

#!/bin/bash


echo "${bamboo.inject.version}"
echo "${bamboo_inject_version}"
echo ${bamboo.inject.version}
echo ${bamboo_inject_version}

 

1 answer

1 accepted

0 votes
Answer accepted
Rafael Pinto Sperafico
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2019

Hi @Abhijith Komarla ,

It seems you are running into a bug - https://jira.atlassian.com/browse/BAM-20359Variable "version" cannot be used as a Bamboo (Injected) variable.

Please, let us know if this describes the problem you are facing.

Kind regards,
Rafael

Abhijith Komarla
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!
March 21, 2019

thanks Rafael.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events