salt/cicd/jenkins/pre-commit
Pedro Algarvio 65e12043eb Automatically remove import comments on files.
This is desired because now imports are automatically sorted and these
header comments often get misplaced.

Fixes #57979
2020-09-24 13:47:43 -07:00

15 lines
285 B
Groovy

@Library('salt@master-1.7') _
if (env.CHANGE_ID) {
// This is a PR
pre_commit_skips = ''
} else {
// This is a branch build
pre_commit_skips = 'pyupgrade,remove-import-comments'
}
runPreCommit(
env: env,
pre_commit_skips: pre_commit_skips)
// vim: ft=groovy