Answer the question
In order to leave comments, you need to log in
Getting version from JIRA before build in Jenkins?
Hello.
I'm tired of editing the version before each release. Often forgotten already.
How can I get the current unreleased version number from JIRA to use it in an automated project build?
I would also be happy to help you use the received version, as I understand it, through a parameterized assembly, you need to add a version variable to the build.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
JIRA has an API - you can get the version number through it. C Jetkins did not work, but most likely Ant can be connected to it, which will pull the desired version.
You just need to send a request to Jira. If ant does not have a suitable tool, then you can make a simple utility in Java or Python, and run ant before building, get the version, save it in a form suitable for ant (txt?). Anything in this spirit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question