O
O
Oleg Batishchev2012-03-20 10:45:58
JIRA
Oleg Batishchev, 2012-03-20 10:45:58

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

3 answer(s)
S
serso, 2012-03-20
@serso

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.

S
sphinks, 2012-03-20
@sphinks

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.

O
Oleg Batishchev, 2012-03-20
@z0rg

solution
code.google.com/p/missing-link/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question