Class AbstractPublisherTask<V>
- java.lang.Object
-
- jenkins.security.MasterToSlaveCallable<V,UploadException>
-
- org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask<V>
-
- All Implemented Interfaces:
hudson.remoting.Callable<V,UploadException>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
- Direct Known Subclasses:
InternalAppSharingUploadTask
public abstract class AbstractPublisherTask<V> extends MasterToSlaveCallable<V,UploadException>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
applicationId
protected String
editId
protected com.google.api.services.androidpublisher.AndroidPublisher.Edits
editService
protected PrintStream
logger
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description V
call()
protected void
commit()
protected void
createEdit(String applicationId)
Creates a new edit, assigning theeditId
.protected abstract V
execute()
protected String
getCredentialName()
protected com.google.api.services.androidpublisher.AndroidPublisher.Edits
getEditService()
protected com.google.api.services.androidpublisher.AndroidPublisher.Internalappsharingartifacts
getInternalAppSharing()
-
Methods inherited from class jenkins.security.MasterToSlaveCallable
checkRoles, getChannelOrFail, getOpenChannelOrFail
-
-
-
-
Field Detail
-
editService
protected com.google.api.services.androidpublisher.AndroidPublisher.Edits editService
-
applicationId
protected final String applicationId
-
editId
protected String editId
-
logger
protected PrintStream logger
-
-
Method Detail
-
call
public final V call() throws UploadException
- Throws:
UploadException
-
execute
protected abstract V execute() throws IOException, InterruptedException, UploadException
-
getEditService
protected final com.google.api.services.androidpublisher.AndroidPublisher.Edits getEditService() throws UploadException
- Throws:
UploadException
-
getInternalAppSharing
protected final com.google.api.services.androidpublisher.AndroidPublisher.Internalappsharingartifacts getInternalAppSharing() throws UploadException
- Throws:
UploadException
-
createEdit
protected final void createEdit(String applicationId) throws IOException
Creates a new edit, assigning theeditId
. Any previous edit ID will be lost.- Throws:
IOException
-
commit
protected void commit() throws IOException
- Throws:
IOException
-
getCredentialName
protected String getCredentialName()
- Returns:
- The name of the credential being used.
-
-