-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add support for an inclusive job list in Jenkins plugin #8287
Conversation
plugins/inputs/jenkins/README.md
Outdated
## Jobs to exclude from gathering | ||
## Jobs to include or exclude from gathering | ||
## When using both lists, job_exclude has priority. | ||
# job_include = [ "jobA", "jobB/subjobA/subjobB", "jobC*"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default should be an empty list with the meaning of "include all" as I guess that was the behavior before.
plugins/inputs/jenkins/jenkins.go
Outdated
## Jobs to exclude from gathering | ||
## Jobs to include or exclude from gathering | ||
## When using both lists, job_exclude has priority. | ||
# job_include = [ "jobA", "jobB/subjobA/subjobB", "jobC*"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as in README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only comment is that the README (and sampleConfig
) should show the actual default for the option. In this case the default is an empty list... Code looks good otherwise.
Thanks for the review @srebhan ! Actually the default behavior is not changed here. This PR should not break or change in any way the current configs in use. The default was no excluded list defined (it's commented in config), which let all jobs to be collected. With this PR If you pass an empty To get all jobs I see 3 options:
Please let me know if you think we should improve the README or if it's ok. Thanks! |
Hey @JS1010111, I think there is a misunderstanding. This is not about code change but only about change in the config documentation (README.md and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
* Add support for an inclusive job list * Update jenkins plugin tests * Update jenkins plugin docs * Update jenkins plugin docs (cherry picked from commit ed72aac)
No description provided.