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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -