org.wso2.carbon.appfactory.jenkins.artifact.storage
Class PersistArtifactHandler
java.lang.Object
org.wso2.carbon.appfactory.jenkins.artifact.storage.PersistArtifactHandler
- All Implemented Interfaces:
- hudson.FilePath.FileCallable<Boolean>, Serializable
public class PersistArtifactHandler
- extends Object
- implements hudson.FilePath.FileCallable<Boolean>
Implementation of FileCallable to copy the artifact from
workspace to persistent storage at jenkins side
- See Also:
- Serialized Form
|
Method Summary |
Boolean |
invoke(File file,
hudson.remoting.VirtualChannel channel)
This method will be invoked when we pass an object of this class to build.getWorkspace().act
method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistArtifactHandler
public PersistArtifactHandler(PersistArtifactHandlerConfig artifactHandlerConfig)
invoke
public Boolean invoke(File file,
hudson.remoting.VirtualChannel channel)
throws IOException,
InterruptedException
- This method will be invoked when we pass an object of this class to build.getWorkspace().act
method. Here the build is an AbstractBuild
- Specified by:
invoke in interface hudson.FilePath.FileCallable<Boolean>
- Parameters:
file - the workspace directory of the built jobchannel -
- Returns:
-
- Throws:
IOException
InterruptedException
Copyright © 2015 WSO2 Inc. All rights reserved.