如何禁用对 Git 存储库资源进行提交后构建的运行。

huangapple go评论52阅读模式
英文:

How to disable running builds on commit for a gitrepo resource

问题

我有一个git仓库资源,但我不想在每次提交到这个仓库时触发运行。有没有办法实现这个?

英文:

I have a git repo resource, but I don't want to trigger run on every commit into this repository. is there anyway I can achieve this?

答案1

得分: 1

我们应该在这里禁用“buildOn Commit”。例如,

- name: my_app_repo
  type: GitRepo
  configuration:
    gitProvider: my_github
    path: myuser/repo-name
    branches:
      include: master
    buildOn:
      commit: false

参考链接

英文:

We should disable buildOn Commit here. for example,

- name: my_app_repo
  type: GitRepo
  configuration:
    gitProvider: my_github
    path: myuser/repo-name
    branches:
      include: master
    buildOn:
      commit: false

Reference

huangapple
  • 本文由 发表于 2023年2月14日 00:08:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75438406.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定