adoptopenjdk-plugin
adoptopenjdk-plugin copied to clipboard
Fix generating empty cache on controller
ZipExtractionInstaller.performInstallation() will invoke FilePath.installIfNecessaryFrom() to extract tar ball. When there is no connection to the binary_link and the filepath expected
exists, no exception will be thrown thus it falls though to generate and send an emptly cache file to the master. Next rounds requests to install the same JDK tool will result in empty tool directory on slave nodes.
Fix that by skip creating empty tool directory on slave nodes.
Testing done
Submitter checklist
- [x] 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
- [x] 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