As some of you may already know, Jenkins has some environment variables such as BUILD_NUMBER, BUILD_URL etc. which are being set on execution. These variables can be accessed with various ways such as shell script, maven pom.xml file and more. The description below is relevant to maven based projects.