Skip to main content

A Python Pipeline DSL for Concourse

Project description

Pipeline DSL for Concourse

downloads python pypi license

Features

  • Develop complete Concourse pipelines in plain Python
  • Test Pipelines inside Concourse without pushing them to github
  • Test Pipelines locally

Installation

Installation from PyPI

pip3 install pipeline-dsl

Installation from GitHub

pip3 install --upgrade git+https://github.com/sap/pipeline-dsl.git@main

Example

from pipeline_dsl import Pipeline, GitRepo

with Pipeline("c21s") as pipeline:
    pipeline.resource("shalm", GitRepo("https://github.com/wonderix/shalm"))
    with pipeline.job("create-cluster") as job:
        shalm = job.get("shalm")
        cluster_name = "test"

        @job.task()
        def create_shoot():
            print(f"Create cluster {cluster_name}")
            return cluster_name

        @job.task(secrets={"home": "HOME"})
        def install_shalm(home=None):
            print("HOME=" + home)
            print(f"Installing shalm {shalm.path} into {create_shoot()}")
            return "Hello"

Documentation

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

pipeline-dsl-0.3.0.tar.gz (14.6 kB view details)

Uploaded Source

File details

Details for the file pipeline-dsl-0.3.0.tar.gz.

File metadata

  • Download URL: pipeline-dsl-0.3.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for pipeline-dsl-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e0efc4e70ba85afa5d1287b7ac2e086d82a1e58f1af904b40ba183bea06aaded
MD5 c1724ba35bcadd965896d4bdd547f117
BLAKE2b-256 91f7df64b955ec3974c8769a88f50b5e5fd8bc661f03992952779a57e2646e5d

See more details on using hashes here.

Supported by

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