Skip to content

Conversation

@dvpierce
Copy link

If developer manually specifies the default version of a library where overriding the default version is not allowed, this should allow the checkout to proceed normally.

https://issues.jenkins.io/browse/JENKINS-66682

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • [] Link to relevant pull requests, esp. upstream and downstream changes
  • [] Ensure you have provided tests - that demonstrates feature works or fixes the issue

If developer manually specifies the default version of a library where overriding the default version is not allowed, this should allow the checkout to proceed normally.
Copy link

@car-roll car-roll left a comment

Choose a reason for hiding this comment

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

I'm hesitant to go this route as it can cause more confusion for users that are not aware of this behavior. At the very least there needs to be some logging to explain that this has happened and possibly even a flag to enable this behavior.

@dvpierce
Copy link
Author

dvpierce commented Nov 8, 2021

Hello @car-roll - I have added logging as you suggested.

I'm not familiar enough with the codebase to know how I might create a toggle/option for this functionality - could you give me a hint?

Please LMK your thoughts.

@car-roll
Copy link

car-roll commented Nov 9, 2021

@dvpierce Something like this: https://github.com/jenkinsci/durable-task-plugin/blob/adeab44bbb208cdd3e375775eacd281e6e49797b/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java#L69

You would then be able to set the variable in the jenkins command-line startup or via the script console.

edit: For some reason, when I looked at it I was thinking this was more disruptive behavior than it really is. I'm now thinking a switch isn't necessary.

@car-roll car-roll requested a review from bitwiseman November 9, 2021 06:20
@jglick
Copy link
Member

jglick commented May 23, 2022

As of #172 most of the code in this plugin has been moved to another plugin repository so this PR must be closed. If this change is still needed, please

git clone https://github.com/jenkinsci/pipeline-groovy-lib-plugin
cd pipeline-groovy-lib-plugin
git checkout -b patch-1
git pull https://github.com/dvpierce/workflow-cps-global-lib-plugin patch-1

resolve any merge conflicts, and file a fresh PR on the new repository. Be sure to paste a link to this old PR to enable bidirectional navigation.

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.

3 participants