Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by (171 points)
0 votes

Yes, you can get Jenkins project name / job name.

Jenkins sets environment variables such as JOB_NAME, see here for more details on the variables set.

You can then access these in your code by reading ${env.JOB_NAME}.