Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github workflows: updatecli #158

Open
samuelbernardolip opened this issue Jun 2, 2021 · 0 comments
Open

github workflows: updatecli #158

samuelbernardolip opened this issue Jun 2, 2021 · 0 comments
Labels

Comments

@samuelbernardolip
Copy link
Collaborator

samuelbernardolip commented Jun 2, 2021

Jenkins infra follows almost the same git flow strategy as we are adopting for JePL:
https://github.com/jenkins-infra/jenkins-infra#branching-model

We use jenkins/* for the same purpose as they are using staging branch.
In the workflow they use updatecli action to manage the staging branch:
https://github.com/updatecli/updatecli

motto: Automatically open a PR on your GitOps repository when a third service publishes an updates

A job is triggered periodically with a predefined cron. The goal is to check for differences and then apply the required changes to run the required Jenkins pipelines.

This is an interesting approach, since updatecli templates allows to look to the external repository/branch, as an overview:

sources:
... dynamic association to release we want
conditions:
... what should happen to run the targets
targets:
... do PR if file changes happens

The cons of using updatecli:

  • more complex implementation using github actions, that will require much more work to do the same when using other git management platforms like Gitlab
  • the control goes around files placed in the repository
  • also need additional actions on github workflow to checkout the required code before calling updatecli

So I think our approach continues to be the best, since is more simple, using the minimum work that needs to be done in git management platform, before calling the webhook for Jenkins job. We should try always to keep as much as possible the pipeline code in Jenkins side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant