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

jobs/garbage-collection: add containers #1029

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jbtrystram
Copy link
Contributor

Add containers tags in the garbage collection job. These can run in parrallel without issues.

}
}
// containers tags and cloud artifacts can be GCed in parallel
parallel {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parallel syntax is for the declarative pipeline syntax, not scripted, which is what we use here. (Yeah... it's a mess.)

In the scripted syntax, parallel takes a map of string --> closure. See other uses of parallel in this repo for comparison.

Though honestly, I'd also be totally fine to not run them in parallel. It's not really a time-sensitive job either since it's a follow-up task to the release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I got confused by the documentation. I know it's not strictly necessary but I wanted to learn :)
I updated.

jobs/garbage-collection.Jenkinsfile Outdated Show resolved Hide resolved
jobs/garbage-collection.Jenkinsfile Outdated Show resolved Hide resolved
Add containers tags in the garbage collection job. These can run
in parrallel without issues.
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the next step after this is actually defining GC policies for containers.

stage('Upload Builds JSON') {
// containers tags and cloud artifacts can be GCed in parallel
def parallelruns = [:]
parallelruns['Cloud artifacts'] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
parallelruns['Cloud artifacts'] {
parallelruns['Cloud artifacts'] = {

parallelruns['Container tags'] {
// get repo url from pipecfg
def registry = pipecfg.registry_repos.oscontainer.repo
pipecfg, params.STREAM, params.VERSION)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is off here.

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

Successfully merging this pull request may close these issues.

2 participants