Your right. The variable is not defined with a push hook when the previous job failed, but the same variable is defined when MR hook occurred. As a result, the problem is solved by accessing a variable like env.variable.
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.