krishna
krishna

Reputation: 41

How to disable running builds on commit for a gitrepo resource

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?

Upvotes: 1

Views: 31

Answers (1)

krishna
krishna

Reputation: 41

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

Upvotes: 1

Related Questions