org.jenkinsci.plugins.relution
Class ApplicationFileCallable
java.lang.Object
org.jenkinsci.plugins.relution.ApplicationFileCallable
- All Implemented Interfaces:
- hudson.FilePath.FileCallable<Boolean>, Serializable
public class ApplicationFileCallable
- extends Object
- implements hudson.FilePath.FileCallable<Boolean>
- See Also:
- Serialized Form
Method Summary |
Boolean |
invoke(File f,
hudson.remoting.VirtualChannel channel)
These method is responsible to get the file to upload against the relution store during the build process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationFileCallable
public ApplicationFileCallable(hudson.model.AbstractBuild build,
hudson.model.BuildListener listener,
List<RelutionCommunicator> communicators,
Application application)
- Constructor.
- Parameters:
build
- Actual build number.listener
- Receives events that happen during a build.communicators
- List of all global specified communicators.application
- Job that will be build.
invoke
public Boolean invoke(File f,
hudson.remoting.VirtualChannel channel)
throws IOException,
InterruptedException
- These method is responsible to get the file to upload against the relution store during the build process.
If the file could not be found the build will marked as failed!
After the file is found retrieving short Information of the file
In the last steps different request's will be created to
- after creating the first request an APIObject File Object will be returned in the reponse
- in the second step an request will created to get an APIObject App
- Returns the existing APIObject App if resource with package name (internalName) already exists.
- Returns an error if APIObject Version with versionCode already exists.
- the last step will upload the APIObject App created in step 2
- Specified by:
invoke
in interface hudson.FilePath.FileCallable<Boolean>
- Parameters:
f
- Holds information about path the project relates to.channel
- Represents a communication channel to the remote/local peer.
- Returns:
- true if build executes fine, false else
- Throws:
IOException
InterruptedException
Copyright © 2004-2013. All Rights Reserved.