I have a Python script that sets value of a variable var
and prints it.
As soon as the script completes execution, I need to get the value of the variable var
and send it as part of Jenkins email.
All I'm able to get till now is the status code of the script execution.
Is there any possible way to capture the value of that variable var
and send it as part of the Jenkins email content ?
Execute Shell:
python -W ignore login.py
Email content:
${BUILD_LOG, maxLines=6}
This is sending the log with last 6 lines.
The log contains the execute shell command and one line after that is the text that I want to send in Email content.
But ${BUILD_LOG_REGEX, regex="*ignore*", linesAfter=1}
is not working.