Download the PHP package spryker/scheduler-jenkins without Composer
On this page you can find all versions of the php package spryker/scheduler-jenkins. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spryker/scheduler-jenkins
More information about spryker/scheduler-jenkins
Files in spryker/scheduler-jenkins
Package scheduler-jenkins
Short Description SchedulerJenkins module
License proprietary
Informations about the package scheduler-jenkins
SchedulerJenkins Module
Provides Jenkins scheduler functionality.
Installation
Configuration
Each scheduler is configured under SchedulerJenkinsConstants::JENKINS_CONFIGURATION, keyed by scheduler id:
| Key | Default | Description |
|---|---|---|
SCHEDULER_JENKINS_BASE_URL |
none, required | Base URL of the Jenkins instance |
SCHEDULER_JENKINS_CREDENTIALS |
none | [username, password] for Jenkins basic auth |
SCHEDULER_JENKINS_CSRF_ENABLED |
false |
Whether to fetch a CSRF crumb before each write |
SCHEDULER_JENKINS_TIMEOUT |
30 |
Seconds allowed for a complete Jenkins API request |
SCHEDULER_JENKINS_CONNECT_TIMEOUT |
10 |
Seconds allowed to establish the connection to Jenkins |
Timeouts
Both timeouts are per Jenkins API call, not per console command, and apply to every scheduler operation (setup, clean, suspend, resume).
They exist because Guzzle's own default is 0, meaning wait forever. Without them, a Jenkins instance that completes the TCP handshake but never answers makes scheduler:suspend block until an outer process timeout kills it, which in a deploy pre-deploy hook surfaces as an opaque ProcessTimedOutException naming Symfony Process rather than Jenkins. With them, the call fails in seconds and the console prints Scheduler Error: followed by the underlying Jenkins error, and exits non-zero.
For the same reason a configured value that is missing, non-numeric or not positive falls back to the default rather than being passed through: 0 would restore the unbounded wait these timeouts exist to remove. Raise SCHEDULER_JENKINS_TIMEOUT for a Jenkins instance that is legitimately slow to respond; there is no supported way to disable the bound.
Defaults can be changed per project by overriding SchedulerJenkinsConfig::getDefaultJenkinsRequestTimeout() or getDefaultJenkinsConnectTimeout().
Scripts
scripts/clean_jobs.sh
Deletes all jobs from a Jenkins instance via the Jenkins REST API. Useful for cleaning up stale jobs before re-running the scheduler setup.
Required environment variables:
| Variable | Description |
|---|---|
SPRYKER_SCHEDULER_HOST |
Jenkins hostname |
SPRYKER_SCHEDULER_PORT |
Jenkins port |
Usage:
The script fetches a CSRF crumb and its session cookie before issuing delete requests.
Documentation
All versions of scheduler-jenkins with dependencies
psr/http-message Version ^1.0.0 || ^2.0.0
spryker/guzzle Version ^2.0.0
spryker/kernel Version ^3.52.0
spryker/scheduler-extension Version ^1.0.0
spryker/twig Version ^3.0.0
spryker/util-encoding Version ^2.0.0