I know there is $BUILD_STATUS and &BUILD_URL variables in Email-ext plugin. But I cant find anywhere what are all variables available to me... Where can I find them all, like duration time, date etc.?
Before using email-ext on a project, you must configure some global settings. Go to Jenkins System configuration page. Manage Jenkins -> Configure System. The section titled Extended E-mail Notification is where you can configure global email-ext properties.
Go to the Jenkins system-wide configuration page ( Manage Jenkins, Configure System ). The configuration for this plugin can be found in the section entitled Extended E-mail Notification . This configuration should match the settings for your SMTP mail server.
The main objective of using Jenkins in emails is to install and successfully configure the email-ext plugin. Jenkins, is an open-source tool that can be used to perform Continuous Integration and build automation.
There are two ways to list all Jenkins environment variables: Accessing the list through a web browser. Using Jenkins shell commands to print it out. To see a list of Jenkins environmental variables in a web browser, navigate to the following address:
Well, email-ext has access to all the Jenkins environment variables for jobs. Below is a list in the Jenkins documentation. Some plugins also add their own variables
https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-below
Edit:
The wiki page says this about tokens: To see a list of all available email tokens and what they display, you can click the "?" (question mark) associated with the Content Token Reference at the top bottom of the email-ext section on the project configuration screen.
YourURL/env-vars.html/
lists all available variables (not including plug-ins).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With