go_linter.yaml 481 B

123456789101112131415161718
  1. presubmits:
  2. platform/go-common:
  3. - name: __go_linter_job_name__
  4. always_run: true
  5. namespace: default
  6. optional: true
  7. spec:
  8. containers:
  9. - image: go_lint
  10. imagePullPolicy: IfNotPresent
  11. args:
  12. - --id=$(BUILD_ID)
  13. - --job=$(JOB_NAME)
  14. - --root=/root/go/src
  15. - --repo=git.bilibili.co/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)
  16. - --command
  17. - ./build/verify-lint.sh
  18. - ./<<bazel_dir_param>>/...