Class SendBuildAction
- java.lang.Object
-
- jenkins.MasterToSlaveFileCallable<SendBuildMessage>
-
- com.datatheorem.mobileappsecurity.jenkins.plugin.sendbuild.SendBuildAction
-
- All Implemented Interfaces:
FilePath.FileCallable<SendBuildMessage>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
public class SendBuildAction extends MasterToSlaveFileCallable<SendBuildMessage>
Upload a build to Data Theorem Upload Api.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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class jenkins.MasterToSlaveFileCallable
checkRoles
-
-
-
-
Method Detail
-
invoke
public SendBuildMessage invoke(File f, hudson.remoting.VirtualChannel channel)
-
perform
public SendBuildMessage perform()
-
setApplicationCredential
public void setApplicationCredential(ApplicationCredential applicationCredential)
-
setProxy
public void setProxy(Proxy proxy)
-
setReleaseType
public void setReleaseType(String releaseType)
-
setExternalId
public void setExternalId(String externalId)
-
-