public class SendBuildAction extends MasterToSlaveFileCallable<SendBuildMessage>
The action uses the secret Upload API Key and the path to the build which has to be sent to Data Theorem. The perform action first call data theorem upload_init endpoint with the apiKey to get the upload link. Then if the API Key is correct the action send the build to Data Theorem using the upload link. return : SendBuildMessage with success value and the body response
| Constructor and Description |
|---|
SendBuildAction(String apiKey,
TaskListener listener,
FilePath workspace,
String buildPath,
String sourceMapPath,
Boolean isBuildStoredInArtifactFolder) |
SendBuildAction(String apiKey,
TaskListener listener,
FilePath workspace,
String buildPath,
String sourceMapPath,
Boolean isBuildStoredInArtifactFolder,
String proxyHostname,
int proxyPort,
String proxyUsername,
String proxyPassword,
boolean proxyUnsecureConnection) |
| Modifier and Type | Method and Description |
|---|---|
SendBuildMessage |
invoke(File f,
hudson.remoting.VirtualChannel channel) |
SendBuildMessage |
perform() |
void |
setApplicationCredential(ApplicationCredential applicationCredential) |
void |
setExternalId(String externalId) |
void |
setProxy(Proxy proxy) |
void |
setReleaseType(String releaseType) |
checkRolespublic SendBuildAction(String apiKey, TaskListener listener, FilePath workspace, String buildPath, String sourceMapPath, Boolean isBuildStoredInArtifactFolder)
public SendBuildMessage invoke(File f, hudson.remoting.VirtualChannel channel)
public SendBuildMessage perform()
public void setApplicationCredential(ApplicationCredential applicationCredential)
public void setProxy(Proxy proxy)
public void setReleaseType(String releaseType)
public void setExternalId(String externalId)
Copyright © 2016–2021. All rights reserved.