-
Notifications
You must be signed in to change notification settings - Fork 30
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
[JENKINS-74864] Default library step changelog to global configuration settings #100
base: master
Are you sure you want to change the base?
Conversation
Need some advice for that last test failure - the object |
From my PoV this is as designed: the changelog configuration is intended to apply to use of the library from either the |
When seeing the issue reported by the user, I also assumed that this was a bug. As a user, it feels logical that if you don't set the It might explain the confusion that we see in several threads:
But I see you point. It's going to change change the behavior of existing pipelines that use the library step, and will require a breaking change disclaimer, though maybe it is for the best ? |
Perhaps, I do not recall this detail. Discussion in jenkinsci/workflow-cps-global-lib-plugin#34 (comment) was six years ago.
I do not think an incompatible change is warranted for a possibly minor unexpected behavior with what should be an obvious “workaround” (or simply “solution”, depending on your perspective): specifying the value of the step parameter to be what you wanted. |
Some of those are discussing Declarative, which may be adding its own (possibly buggy or inconsistent) behavior on top of the |
(recreate the JIRA. I was removed I recall because there was an JIRA DB outage at that time). |
(merge conflicts ICYMI) |
JENKINS-74864
Testing done
@Library
annotation to load the above library and use a test steplibrary
step to do the sameDefaults
--> The second run of both pipelines shows NO changes
Global configuration is the default
--> The new run of both pipelines shows changes
Library step overrides / takes precedence
library
step:changelog: false
--> The new run of the pipeline with the annoation shows changes
--> The new run of the pipeline with the
library
step shows NO changesSubmitter checklist