Skip to main content

Define Jenkins jobs from repository

Project description

CI Status Version on PyPI

Define jobs from project

Render Jenkins job and execute comment from jenkins.yml. These two steps are completely independant.

jenkins_yml provide a python API to render a Jenkins job XML config from a YAML payload. It does not manage Jenkins I/O to effectively create the job.

Finally, jenkins_yml provide a simple CLI script to executes de tests commands from jenkins.yml.

Setup

On your Jenkins executor, pip3 install jenkins-yml and then use jenkins-yml-runner as shell command.

jenkins.yml format

Put a jenkins.yml file at the root of the project. This file contains a mapping of JOB_NAME to scripts. For example:

app-lint: |
  flake8 app/

app-tests:
  axis:
    TOXENV: [py27, py34, py35]
  script: |
    tox -r

app-doc:
  script: |
    tox -e sphinx -r

To test a job, simply run:

JOB_NAME=app-test jenkins-yml-runner

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jenkins-yml-2.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

jenkins_yml-2.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file jenkins-yml-2.4.tar.gz.

File metadata

  • Download URL: jenkins-yml-2.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jenkins-yml-2.4.tar.gz
Algorithm Hash digest
SHA256 1279001e5ca7e2169b72bc5520ac02ecffe9a6439337d747f0d8776e4af8b3b9
MD5 b3a9f3549fd32fd1204970aed6033dfe
BLAKE2b-256 68b89063a1ad011fac3317c4ce56230bc6b26bdf0ddee179a54a0548898cc663

See more details on using hashes here.

Provenance

File details

Details for the file jenkins_yml-2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for jenkins_yml-2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2182bcd150209b5d7cf0f03559fa47a5504b24d6a6168626ce9495ab267aabdb
MD5 3755a36788fc4a85ae6fe851f1bd5f4c
BLAKE2b-256 675135821888f6dae84ebe62c2ae71376b0c8d6659d6bff09fc0164e64343420

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page