Is there a way to perform a math operation within the "Tag Name" field when configuring "Repository Tag" task?
For example, I would like to add a git commit tag based on the current Bamboo build number. However, the build number should be subtracted by 5. So something like this:
0.0/0.0.(${bamboo.buildNumber}-5)
and when bamboo.buildNumber is equal to 16, the tag would be 0.0/0.0.11.
Hello @Eduardo Wiputra,
Welcome to Atlassian Community!
The "Repository Tag" task will not do mathematical operations whilst tagging a commit.
You can either:
Kind regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
Hello @Eduardo Alvarenga
Thank you very much for the replies! I wasn't aware of "Injection Task" before I asked the question. Since then, I've experimented with it and realized how powerful it can be.
Sincerely,
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Eduardo Wiputra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.