[FLOW3-general] Surfs up Jenkins!

Robert Lemke robert at typo3.org
Tue Jul 10 10:31:31 CEST 2012


Jacob,

On 20.06.2012, at 07:39, Jacob Floyd <cognifloyd at gmail.com> wrote:

> I'm hoping that someone can send me a copy of their Jenkins + TYPO3.Surf 
> setup.

Here is the setup we use to deploy the FLOW3 website to the production server:

<?php

use \TYPO3\Surf\Domain\Model\Workflow;
use \TYPO3\Surf\Domain\Model\Node;
use \TYPO3\Surf\Domain\Model\SimpleWorkflow;

$application = new \TYPO3\Surf\Application\TYPO3();
$application->setOption('repositoryUrl', 'git://git.typo3.org/Sites/Flow3Org.git');
$application->setDeploymentPath('/var/www/flow3.typo3.org');
$application->setOption('sitePackageKey', 'TYPO3.Flow3Org');
$application->setOption('keepReleases', 20);

$deployment->addApplication($application);

$workflow = new SimpleWorkflow();
$deployment->setWorkflow($workflow);

$workflow->defineTask('x:renderdocumentation', 'typo3.surf:flow3:runcommand', array('command' => 'documentation:render'));
$workflow->defineTask('x:importdocumentation', 'typo3.surf:flow3:runcommand', array('command' => 'documentation:import'));
$workflow->afterTask('typo3.surf:typo3:importsite', array('x:renderdocumentation', 'x:importdocumentation'));

$workflow->afterTask('typo3.surf:symlinkrelease', array('typo3.surf:varnishpurge'), $application);

$node = new Node('13428.nodes.robertlemke.net');
$node->setHostname('13428.nodes.robertlemke.net');
$node->setOption('username', 'xyz');

$application->addNode($node);

?>

It does feature a few specialities, for example ad-hoc tasks for rendering the documentation.

Cheers,
Robert

-- 
Robert Lemke
Lead Developer TYPO3 Phoenix and FLOW3
Co-Founder TYPO3 Association

Blog: robertlemke.de/blog
Get involved: typo3.org – flow3.org





More information about the FLOW3-general mailing list