Skip to content
Snippets Groups Projects
Commit 97bb7c8d authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Run pre-commit hooks on Jenkins Git Check stage.

parent d81558ef
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,11 @@ pipeline {
}
stages {
// *************************** Git Check **********************************
stage('Git Check') {
stage('Pre-checks') {
agent { label "master"}
steps {
sh "pre-commit install"
sh "pre-commit run --all-files"
sh "git config core.whitespace -blank-at-eof"
sh "git diff --check `git merge-base origin/master HEAD` HEAD -- . ':!*.md' ':!*.pandoc' ':!*.asc' ':!*.dat' ':!*.ts'"
dir('scripts/jenkins') { stash(name: 'known_hosts', includes: 'known_hosts') }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment