pre-commit 293 B

123456789101112131415
  1. @Library('salt@master-1.9') _
  2. if (env.CHANGE_ID) {
  3. // This is a PR
  4. pre_commit_skips = ''
  5. } else {
  6. // This is a branch build
  7. pre_commit_skips = 'pyupgrade,remove-import-headers,rstcheck'
  8. }
  9. runPreCommit(
  10. env: env,
  11. pre_commit_skips: pre_commit_skips)
  12. // vim: ft=groovy