PHP code example of spryker / scheduler-jenkins

1. Go to this page and download the library: Download spryker/scheduler-jenkins library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

spryker / scheduler-jenkins example snippets


use Spryker\Shared\SchedulerJenkins\SchedulerJenkinsConfig;
use Spryker\Shared\SchedulerJenkins\SchedulerJenkinsConstants;

$config[SchedulerJenkinsConstants::JENKINS_CONFIGURATION] = [
    'default' => [
        SchedulerJenkinsConfig::SCHEDULER_JENKINS_BASE_URL => 'http://scheduler:8080/',
        SchedulerJenkinsConfig::SCHEDULER_JENKINS_CREDENTIALS => ['username', 'password'],
        SchedulerJenkinsConfig::SCHEDULER_JENKINS_CSRF_ENABLED => true,
        SchedulerJenkinsConfig::SCHEDULER_JENKINS_TIMEOUT => 30,
        SchedulerJenkinsConfig::SCHEDULER_JENKINS_CONNECT_TIMEOUT => 10,
    ],
];