-
Notifications
You must be signed in to change notification settings - Fork 282
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
How can external workflows be authored in a way that makes sure best practices are followed? #1534
Comments
On high level the Jenkins libraries to release the artifacts will be located in opensearch-build repo similar to other jenkins libraries https://github.com/opensearch-project/opensearch-build/tree/main/vars . In this way we can reuse the existing codebase (like for signing). However in case of JenkinsFiles and its regression test files we have two options: (Need to choose one) Option 1:The jenkins files and its regression test files for each component will be situated in the respective component’s github repository. Pros:
Cons:
Option 2:Everything is located in opensearch-build repo. Pros
Cons:
|
Because of branching I would choose option 1. I think the Jenkins library should be split up in smaller parts (e.g. signing), each part versioned, and released as a standalone component, similar to GitHub Actions, to solve the cons. |
I am not sure that is doable or not @dblock . Was researching regarding jenkins shared libraries and all the content I found is asking to use the git branch, tag or commit as version. GitHub Actions has each action has separate git repository and that's why its easier to version per action. Adding @prudhvigodithi to see if he knows of any such way. |
Researched a bit on pulling different versions for remote jenkins shared libraries, and found this plugin https://plugins.jenkins.io/workflow-cps-global-lib-http/ Few things to keep in mind:
|
|
Release workflows will need to describe what actions should take place when its time to release the product. These will be run only as often as releases occur. How can workflows be authored in a way that makes them durable to changes in OpenSearch-Build repositories changes as well as getting notified about sensible workflow changes to make before the next release?
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: