By default, a user needs to explicitly request a preview using the /preview
comment on the pull request.
You must repeat the comment on each update to the pull request in order to get an updated environment.
You can, however, configure CloudBees Previews to automatically update a preview environment on each push to the pull request using the autoUpdate
configuration.
Even with |
You can configure autoUpdateContexts
when you create the GitRepository CR or you dynamically enable or disable it.
The autoUpdateContexts
configuration takes a list of preview contexts for which to enable the auto-update feature:
kubectl patch
kubectl patch gitrepository acme-web --type merge -p '{"spec":{"autoUpdateContexts":["default"]}}'
kubectl
kubectl patch gitrepository acme-web --type merge -p '{"spec":{"autoUpdateContexts":[]}}'