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

Adds auto-favoriting exclusion for workflow libraries #123

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

Conversation

froque
Copy link
Member

@froque froque commented Jul 3, 2023

Without testing if a remote URL is a match for the buildData it might log an error when testing a specific commit against the wrong git repository: Unexpected error when retrieving changeset
hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev ... Should fix JENKINS-43400 Autofavorite broken on remote agents.

Fixing the previous behavior leads to auto-favoriting the author of the last commit for the workflow library for all builds that contains the workflow library.

pipeline-groovy-lib contains duplicate code from deprecated plugin workflow-cps-global-lib-plugin. Could not add support for both plugins due the java package being the same.

Testing done

Submitter checklist

Preview Give feedback

@froque froque force-pushed the support_workflow_libraries branch from 9a6c4f2 to a8bc2c4 Compare July 3, 2023 14:23
@froque
Copy link
Member Author

froque commented Jul 3, 2023

Jenkins seems to be ignoring my changes to Jenkinsfile

14:23:58  Loading trusted files from base branch master at df62488ba8e174deea02ab540737d5e4544a20cd rather than a8bc2c4635a1f2bb0717c2fbb3e9f41f976abfc7
14:23:58  Obtained Jenkinsfile from df62488ba8e174deea02ab540737d5e4544a20cd

https://ci.jenkins.io/job/Plugins/job/blueocean-autofavorite-plugin/job/PR-123/2/console

Without testing if a remote URL is a match for the buildData it might log
an error when testing a specific commit against the wrong git repository:
Unexpected error when retrieving changeset
hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev ...
Should fix JENKINS-43400.

Fixing the previous behavior leads to auto-favoriting the author of the
last commit for the workflow library for all builds that contains the
workflow library.

pipeline-groovy-lib contains duplicate code from deprecated plugin
workflow-cps-global-lib-plugin. Could not add support for both plugins due
the java package being the same.
@froque froque force-pushed the support_workflow_libraries branch from a8bc2c4 to 13d80c7 Compare April 8, 2024 10:14
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.

1 participant