custom.p4.revision.number bad substituion?

I can't find anything for this variable "${bamboo.custom.p4.revision.number}. On the documentation it mentions that it's a "plugin" type of variable, but what plugin? I can't find anything regarding how to gain access to this variable. I might just be blind. Thanks in advance!


The original question was answered, but it's not the problem I am having. I can not access the custom.p4.revision.number variable. I get a "bad substitution" error

1 answer

1 accepted

0 votes
Accepted answer

It's provided by VCS Version Reader Plugin, which is bundled with Bamboo. You should be able to access it without any additional work if your plan uses Perforce VCS.

I have verified that we do that plugin, and it is enabled. However I can not access the variable. I keep getting a bad substituion error. Other variables work just fine.

going to bump this post up, still looking for an answer. Thanks!

We opened up a formal support ticket on this issue. There have been a few back and forth responses so far with no resolution yet... Once we figure out what the problem is I will respond with an answer.

Is it possible that the Job using that variable has no Source Code Checkout task?

Wow... Piotr you are correct. I had the variable being used in a job that was concurrent with a job that was doing the perforce pull under the same stage... as soon as I tied them to the same job with different tasks.. it substitutes correctly. Makes total sense as to why it didn't work now. I may be the only one that had ever had an issue with this, but maybe if others have the same problem a bit more clarification could be added to the documentation, unless I am the only person who would have made this mistake...

Been fighting this problem all week. I appreciate it! Thanks again.

Definitely you aren't alone having this issue: . :)


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

175 views 4 1
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