chocolatey / chocolatey/choco-quickstart-scripts

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

Open
#295 2 comments 0 reactions 0 assignees View on GitHub
Bug Multiple Environments
Dominant language
PowerShell
Stars
23
Forks
15
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [x] I confirm there are no unresolved issues reported on the [Chocolatey Status page](https://status.chocolatey.org).
- [x] I have verified this is the correct repository for opening this issue.
- [x] I have verified no other issues exist related to my problem.
- [x] I have verified this is not an issue for a specific package.
- [x] I have verified this issue is not security related.
- [x] 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

```bash
N/A
```

### Output Log

```bash
N/A
```

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.