flux
Interface GitTrigger

All Superinterfaces:
flux.Action, Cloneable, flux.runtimedatamap.RuntimeDataMap, Serializable, flux.Trigger

public interface GitTrigger
extends flux.Trigger

Git trigger. Watches remote git repository and fires when a new revision is seen.

Usage Example

Here is a sample job that watches Jersey Git repository every hour and fires when a new changeset is seen:

 FlowChart flowChart = Factory.makeInstance().makeEngineHelper().makeFlowChart("Git Trigger Example");
 GitTriggerFactory triggerFactory = (GitTriggerFactory) flowChart.makeFactory("GitTriggerFactory");
 GitTrigger gitTrigger = triggerFactory.makeGitTrigger("Git");
 gitTrigger.setRepositoryUrl("https://github.com/jersey/jersey.git");
 gitTrigger.setPollingDelay("+1H");
 

Author:
arul@flux.ly

Nested Class Summary
static class GitTrigger.GitTriggerResult
          The response from the GitTrigger.
 
Method Summary
 void setPath(String path)
          Sets the path of the hg executable.
 void setPollingDelay(String timeExpression)
          Sets the delay that occurs between changelog polling.
 void setRepositoryUrl(String url)
          Sets the remote git repository URL.
 
Methods inherited from interface flux.Action
addFlow, addFlow, addSignalFlow, clone, execute, getDescription, getFlows, getHiddenVariableNames, getJoinExpression, getName, getPostscript, getPostscriptLanguage, getPrescript, getPrescriptLanguage, getResultInfo, getSignalsToMonitor, getTimeoutBusinessInterval, getTimeoutExpression, getVariableManager, isEndOfRun, isJoinPoint, isSkippable, isStartAction, isStartOfRun, isTransactionBreak, removeFlow, reset, setDescription, setElseFlow, setEndOfRun, setErrorFlow, setErrorFlowWithoutRollback, setErrorFlowWithRollback, setJoinExpression, setJoinPoint, setName, setPostscript, setPostscriptLanguage, setPrescript, setPrescriptLanguage, setSignalsToMonitor, setSkippable, setStartAction, setStartOfRun, setTimeoutBusinessInterval, setTimeoutExpression, setTimeoutFlow, setTransactionBreak, verify, verifyOnClient
 
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap
getRuntimeDataMap, setRuntimeDataMap
 

Method Detail

setPath

void setPath(String path)
Sets the path of the hg executable.

Parameters:
path - the path of the hg executable.

setPollingDelay

void setPollingDelay(String timeExpression)
Sets the delay that occurs between changelog polling. Defaults to +1m, one minute.

Parameters:
timeExpression - the delay that occurs between changelog polling.

setRepositoryUrl

void setRepositoryUrl(String url)
Sets the remote git repository URL.

Parameters:
url - the remote git repository URL.


© 2012 Flux Corporation. All rights reserved.