Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Email-ext variables

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.?

like image 313
Dim Avatar asked Jun 29 '16 11:06

Dim


People also ask

How to configure email-ext on a Jenkins project?

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.

How do I enable extended e-mail notifications in Jenkins?

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.

What is the main objective of using Jenkins in emails?

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.

How do I list all Jenkins environment variables?

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:


2 Answers

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.

like image 184
Dakota Brown Avatar answered Nov 06 '22 00:11

Dakota Brown


YourURL/env-vars.html/

lists all available variables (not including plug-ins).

like image 31
tkosinski Avatar answered Nov 05 '22 23:11

tkosinski