You can get the list of these variables by going to /env-vars.html Example of such freestyle pipeline:
echo "env variables example" echo "The build ID of this job is ${BUILD_ID}" echo "The build URL is ${BUILD_URL}"