Created
August 19, 2019 15:20
-
-
Save rdeknijf/998f98321e071254a439663f4781c7c8 to your computer and use it in GitHub Desktop.
Check Git changes in `admin` dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage('Init') { | |
steps { | |
script { | |
GIT_CHANGED_ADMIN = sh(returnStdout: true, script: "git diff-tree --name-only ${env.GIT_COMMIT} | grep admin | wc -l").trim().toBoolean() | |
echo "GIT_CHANGED_ADMIN = ${GIT_CHANGED_ADMIN}" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment