Skip to content

Set-JenkinsCert fails if multiple versions of JRE (KeyTool) are present #295

Description

@JPRuskin

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

When running Set-JenkinsCertificate, if multiple matching installations of JRE are available, it fails to run a single version of KeyTool.

What is Expected?

KeyTool should run using only one exe.

How Did You Get This To Happen?

  • Install multiple versions of JRE packages
  • Run Set-JenkinsCertificate
  • "See" no error message, but fail to restart the service due to the keystore being missing

System Details

N/A

Installed Packages

N/A

Output Log

N/A

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions