Back to Buildpacks

Piper

content/docs/for-platform-operators/how-to/integrate-ci/piper.md

latest1.3 KB
Original Source

+++ title='Project "Piper"' aliases=[ "/docs/tools/piper" ] weight=5 +++

Project "Piper" is a set of ready-made continuous delivery pipelines for direct use in your project. It now also implements the CNB Platform spec as a step and makes it available in your Jenkins pipeline.

Project "Piper" is maintained by SAP.

<!--more-->

Use

The step called cnbBuild allows you to integrate Cloud Native Buildpacks (CNB) into your Jenkins pipeline.

groovy
@Library(["piper-os"]) _

node() {
    stage("Init") {
        git branch: "main", url: "https://github.com/spring-projects/spring-petclinic"
        setupCommonPipelineEnvironment(script: this)
    }

    stage("Build") {
        cnbBuild(
            script: this,
            dockerConfigJsonCredentialsId: 'DOCKER_REGISTRY_CREDS',
            containerImageName: 'image-name',
            containerImageTag: 'v0.0.1',
            containerRegistryUrl: 'gcr.io'
        )
    }
}

References