A
A
a000_000a2018-01-07 00:46:33
Continuous Integration
a000_000a, 2018-01-07 00:46:33

How to increment build version in Jenkins?

Please tell me how you can increment the build version in Jenkins.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kn0ckn0ck, 2018-01-07
@a000_000a

It is enough to use built-in variables, for example, like this:

@echo off
echo/| set /p =3.6.16.%SVN_REVISION% > version.txt
@echo on

As a result, the following text will appear in the version.txt file: 3.6.16.12331, where 12331 is the commit number on which the build was built.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question