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!

EDIT:

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 vote

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,493 views 0 5
Read article

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