diff --git a/first-class-pipeline/src/com/freeleaps/devops/CommitMessageLinter.groovy b/first-class-pipeline/src/com/freeleaps/devops/CommitMessageLinter.groovy index 6df145e6..a8d80db1 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/CommitMessageLinter.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/CommitMessageLinter.groovy @@ -27,7 +27,7 @@ class CommitMessageLinter { steps.dir(steps.env.workspace) { // commit lint cli requires a git repository to lint commit messages, so we need make sure the workspace is a trusted git repository - steps.sh "git config --global --add safe.directory ${WORKSPACE}/${steps.env.workspace}" + steps.sh "git config --global --add safe.directory ${steps.env.WORKSPACE}/${steps.env.workspace}" steps.sh "commitlint --verbose -g ${rules} -f HEAD^" } }