maven - Jenkins Build Number stamp -


when build new version of project jenkins, new build number placed in project? there way can access in code?

it not placed default: build number used jenkins visible/accesible during job execution environment variable build_number.

there plugins helping infer more meaningful version number:

but again, generate environment variables, don't "place" version number project.
have do, part of build steps. see concrete example in "how include jenkins ci build number in android apk name & app label"


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -