By default App Factory automatically builds and deploys branches of the code repository every time a code commit happens. App Factory periodically checks for code commits. You can override this default behavior by changing the configurations under the <ApplicationDeployment> element in <AF_HOME>/repository/conf/appfactory/appfactory.xml file. Default configurations appear only in for the Development stage, but you can define it in all other stages that appear in the same file.
Apply the following changes to any life cycle stage to enable/disable automatic build for a given time duration.
To enable or disable auto building:
Add the URL of the deployment server for each life-cycle stage. (Eg. This can be the server URL of your WSO2 Application Server instance)
<DeploymentServerURL>your deployment server URL</DeploymentServerURL>
To enable auto deployment and change the polling period to the repository to check for the new commits. The time period is configured in minutes. So the example below shows 6 minutes.
<AutomaticDeployment enabled="true"> <PollingPeriod>6</PollingPeriod> </AutomaticDeployment>