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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package scheduler-jenkins

SchedulerJenkins Module

Latest Stable Version Minimum PHP Version

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

Spryker Documentation


All versions of scheduler-jenkins with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package spryker/scheduler-jenkins contains the following files

Loading the files please wait ...