Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Introduction
============

Simple buildout recipe that generated three commands *push a jenkins job*, *pull a jenkins job* and *trigger build on jenkins job*.

Recipe enables developer to sync configuration on Jenkins with buildout configuration.

Workflow to be used with the recipe:

- create and configure a job through the web
- run pull jenkins job
- later, make more changes the job through the web
- run pull jenkins job and use your SCM to diff the config
- (optional) push configuration to any other server or use it as restore
- (optional) trigger build, because you are too lazy to wait n minutes for cronjob

Supported options
=================

The recipe supports the following options:

hostname (required)
Hostname of the Jenkins instance.

jobname (required)
Name of the Jenkins job.

jobconfig (default: jenkins_config.xml)
Name for XML configuration file for the Jenkins job, relative to buildout directory.

username (required)
Jenkins username

password (required)
Jenkins password

port (default: 80)
Jenkins port


Example usage
=============

We'll start by creating a buildout that uses the recipe::

>>> write('buildout.cfg',
... """
... [buildout]
... parts = jenkins-job
...
... [jenkins-job]
... recipe = collective.recipe.jenkinsjob
... hostname = %(hostname)s
... jobname = %(jobname)s
... jobconfig = %(jobconfig)s
... username = %(username)s
... password = %(password)s
... """ % {
... 'hostname' : 'jenkins.plone.org',
... 'jobname' : 'Plone42',
... 'jobconfig': 'plone.xml',
... 'username': 'chuck',
... 'password': 'norris'})

Running the buildout gives us::

>>> buildout_output_lower = system(buildout).lower()
>>> "installing jenkins-job" in buildout_output_lower
True
>>> "generated script" in buildout_output_lower
True
>>> "bin/jenkins-job-push" in buildout_output_lower
True
>>> "bin/jenkins-job-pull" in buildout_output_lower
True
>>> "bin/jenkins-job-trigger-build" in buildout_output_lower
True

Detailed Documentation
**********************

Contributors
************

Note: place names and roles of the people who contribute to this package
in this file, one to a line, like so:

- Timo Stollenwerk
- Domen Kožar

Change history
**************

Changelog
=========

1.0-alpha1 (2012/02/26)
-------------------

- forked from collective.recipe.hudsonjob
[tisto, iElectric]

Download
********

Metadata

Release files for collective.recipe.jenkinsjob 1.0-alpha1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.recipe.jenkinsjob 1.0-alpha1
File Size Uploaded Provenance Actions
collective.recipe.jenkinsjob-1.0-alpha1.zip 24.6 kB Without provenance Details for collective.recipe.jenkinsjob-1.0-alpha1.zip

Release files / collective.recipe.jenkinsjob-1.0-alpha1.zip

Download URL collective.recipe.jenkinsjob-1.0-alpha1.zip
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7aff51b26be493b5b1080f01b88581e0a719838bd464f0cf36b4db3559896815
BLAKE2b-256 checksum
How to use checksums
7c58e4e5a8de7b8f97c192bca810ee8dbde8a2319ead677b88994d9bee150814
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for collective.recipe.jenkinsjob 1.0-alpha1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page