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

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

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

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