Package hudson.plugins.xcode
Class XcodeXipInstaller
java.lang.Object
hudson.tools.ToolInstaller
hudson.plugins.xcode.XcodeXipInstaller
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstaller>
Installs Xcode by downloading and extracting a
.xip archive on macOS nodes
using /usr/bin/xip --expand.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tools.ToolInstaller
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.tools.ToolInstaller
tool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcheckFirstLaunchStatus(FilePath developerDir, Node node, TaskListener log) protected intcheckLicenseStatus(FilePath developerDir, Node node, TaskListener log) protected voiddownloadArchive(String downloadUrl, FilePath targetFile, Node node, TaskListener log) protected voidensureFirstLaunchIfEnabled(FilePath developerDir, Node node, TaskListener log) Checks license and first-launch initialization fordeveloperDirand runssudo -n /usr/bin/xcodebuild -license accept/-runFirstLaunchwhen enabled and needed.protected intexecuteSudoLicenseAccept(FilePath developerDir, Node node, TaskListener log) protected intexecuteSudoRunFirstLaunch(FilePath developerDir, Node node, TaskListener log) protected intextractXip(FilePath archive, FilePath destinationDir, Node node, TaskListener log) protected ArgumentListBuildergetCurlCommandLine(String downloadUrl, FilePath targetFile) getUrl()protected ArgumentListBuildergetXipCommandLine(FilePath archive) protected booleanisCurlAvailable(Node node) booleanprotected booleanisXipAvailable(Node node) performInstallation(ToolInstallation tool, Node node, TaskListener log) protected FilePathresolveAgentFilePath(String downloadUrl, Node node) resolveHome(FilePath dir) voidsetRunFirstLaunch(boolean runFirstLaunch) Methods inherited from class hudson.tools.ToolInstaller
appliesTo, getDescriptor, getLabel, preferredLocation, setTool
-
Constructor Details
-
XcodeXipInstaller
-
-
Method Details
-
getUrl
-
getSubdir
-
isRunFirstLaunch
public boolean isRunFirstLaunch() -
setRunFirstLaunch
@DataBoundSetter public void setRunFirstLaunch(boolean runFirstLaunch) -
performInstallation
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
performInstallationin classToolInstaller- Throws:
IOExceptionInterruptedException
-
resolveAgentFilePath
-
isXipAvailable
- Throws:
IOExceptionInterruptedException
-
getXipCommandLine
-
extractXip
protected int extractXip(FilePath archive, FilePath destinationDir, Node node, TaskListener log) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ensureFirstLaunchIfEnabled
protected void ensureFirstLaunchIfEnabled(FilePath developerDir, Node node, TaskListener log) throws IOException, InterruptedException Checks license and first-launch initialization fordeveloperDirand runssudo -n /usr/bin/xcodebuild -license accept/-runFirstLaunchwhen enabled and needed.- Throws:
IOExceptionInterruptedException
-
checkFirstLaunchStatus
protected int checkFirstLaunchStatus(FilePath developerDir, Node node, TaskListener log) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
checkLicenseStatus
protected int checkLicenseStatus(FilePath developerDir, Node node, TaskListener log) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
executeSudoLicenseAccept
protected int executeSudoLicenseAccept(FilePath developerDir, Node node, TaskListener log) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
executeSudoRunFirstLaunch
protected int executeSudoRunFirstLaunch(FilePath developerDir, Node node, TaskListener log) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getCurlCommandLine
-
downloadArchive
protected void downloadArchive(String downloadUrl, FilePath targetFile, Node node, TaskListener log) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
isCurlAvailable
- Throws:
IOExceptionInterruptedException
-
resolveHome
- Throws:
IOExceptionInterruptedException
-