Repository navigation
Conversation
…lation (jenkinsci#337) Introduces XcodeXipInstaller which enables automatic downloading and unpacking of Xcode .xip archives on macOS agent nodes via /usr/bin/xip --expand. Fixes jenkinsci#337, References JENKINS-72791.
…checkPermission()
…nload branch conditions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Apple distributes official Xcode installer packages as signed
.xiparchives rather than.zipor.tar.gz. Currently,XcodeInstallationonly inherits Jenkins core's defaultZipExtractionInstaller("Extract .zip/.tar.gz"), which cannot extract.xiparchives.This PR introduces
XcodeXipInstaller, a dedicated automaticToolInstallerforXcodeInstallationthat enables downloading and expanding.xiparchives on macOS agent nodes.Changes
XcodeXipInstaller:.xiparchives from internal distribution mirrors or URLs (attempting directcurldownload on the agent when available, falling back to controller-mediated streaming)..xipfiles on macOS agent nodes using native/usr/bin/xip --expand./usr/bin/xippresence) and rejects non-macOS nodes with a clearAbortException.Xcode.app/Contents/Developer(or accepts a configurable custom subdirectory)..xip-installedmarker file to avoid redundant downloads/expansions..xiparchive after extraction.config.jellyand help files (help-url.html,help-subdir.html).@Symbol("xcodeXip")with display name "Extract .xip archive".DescriptorImpl.doCheckUrl.XcodeInstallationupdate:doCheckHometo gracefully allow empty paths when automatic installers are used.XcodeXipInstallerTestcovering construction, descriptor validation, tool applicability, and home resolution logic.Fixes #337
References JENKINS-72791