[Jenkins] How to set build Number and Build description from your Jenkin file?
If you are using same job for your QA, Stage and Prod environment [Though I don't recommend it], and from the build page, you want to show this information by replacing build number to your environment and By giving a description under your new build name, then you can easily do it by just putting these 2 information's in your Jenkin file:
currentBuild.displayName = "${params.Tags}";
currentBuild.description = "${params.Environment}";
In my case, I am reading this information from the params, but if you want, you can hard code it also.
Once set, and when you will ran your job, the build information will appear like this in your Jenkin build page: