Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Build warnings parser using variable in configuration

IG July 21, 2022

"Variables can be used to make values available when building plans in Bamboo."

 

I created a new variable called "warning.num" and tried to use this in the Build parser configuration in the field: Fail build threshold.

 

However, I've got: "Fail build threshold must be a number."

 

Is it possible to use a variable in that task field?

 

Thanks

 

1 answer

0 votes
jvelapol July 22, 2022

I'm assuming that you're using

$bamboo.warning.num

in the entry, and not just

warning.num

?

IG July 26, 2022

Under default plan configuration -> variables I've added:

trunk.warnings.num  with value 2

 

Then in build warnings parser I set the threshold to:

${trunk.warnings.num}

or 

${bamboo.trunk.warnings.num}

or 

$bamboo.trunk.warnings.num

 

All the time I get: Fail build threshold must be a number.

jvelapol July 26, 2022

Maybe that field can't bet set as a variable?  It's also possible that the value is being parsed as the literal string "2", in which case that won't work either.  Hrm.  I've never used the Build Warnings Task, though.

I'd recommend opening a support ticket with Atlassian, then.

Like IG likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events