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

Fixes Jenkins Pushing and ClientSetup #287

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

JPRuskin
Copy link
Member

Description Of Changes

This change ensures credentials for each potential source are added to the machine, for Jenkins to use. It also tightens up the ClientSetup script, to ensure it's not going to fail when used with repositories named by others.

Motivation and Context

Updates to Chocolatey CLI mean that we can not rely on implicit credentials for a source.

Testing

  • Installed on a local system
  • Verified Chocolatey 2.4.1 was installed
  • Ran "Internalize packages from the Community Repository" with a package
  • Checked that the build succeeded, and the package was present in the test repository

Operating Systems Testing

  • Windows Server 2019

Change Types Made

  • Bug fix (non-breaking change).
  • [ ] Feature / Enhancement (non-breaking change).
  • [ ] Breaking change (fix or feature that could cause existing functionality to change).
  • [ ] Documentation changes.
  • PowerShell code changes.

Change Checklist

  • [ ] Requires a change to the documentation.
  • [ ] Documentation has been updated.
  • [ ] Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • [ ] PowerShell code changes: PowerShell v3 compatibility checked?

Related Issue

Fixes #286

Fixes #285

The logic used in the client setup script to search for the latest version of Chocolatey available in the Repository URL had a minor flaw -

Using TrimEnd could result in repositories ending in any of the characters in "index" could trim too much.

This commit replaces that logic with regex, which hopefully will remove a problem.
Updates to Chocolatey CLI mean that we can not rely on implicit credentials for a source.

This change ensures credentials for each potential source are added to the machine, for Jenkins to use.
Copy link
Contributor

@steviecoaster steviecoaster left a comment

Choose a reason for hiding this comment

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

Aside from a merge conflict in #284 thanks to this, LGTM!

@steviecoaster steviecoaster merged commit f38655c into main Dec 12, 2024
15 checks passed
@steviecoaster steviecoaster deleted the clientJenkinsFixes branch December 12, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants