I've inherited a Jenkins server so I'm trying to determine the purpose of a conditional build step that is failing:
Running the build produces this exception:
Exception caught evaluating condition: [org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'GitLastCommit' in '${GitLastCommit}!=e2859cd109f46e889da99391f149ea68c20b1c75'], action = [Don't run]
So the value of GIT_COMMIT
is being filled but GitLastCommit
is not being filled.
Since it doesn't work I'm wondering how to proceed.
- What's the purpose of checking for this?
- If I should keep it then how to I ensure that
GitLastCommit
gets the right value?