Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.05 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.05 KB

Jenkins Pipeline Examples

Sample maven project including a couple of Jenkins Pipeline scripts. See the included pptx file for the associated presentation.

To set up a pipeline for the hello-boot application in Jenkins use the following

pipelineRepo = "https://github.com/buildit/jenkins-pipeline-examples.git"
pipelineBranch = "stable"
script = "pipelines/pipeline.groovy"

repositoryUrl = "https://github.com/buildit/hello-boot.git"
branch = "master"
cfApiEndpoint = "<cf-api-endpoint>"
cfOrg = "<cf-org>"
cfSpace = "<cf-space>"

node () {
    git poll: false, changelog: false, url: pipelineRepo, credentialsId: "git-credentials", branch: pipelineBranch
    load script    
}

To set up a pipeline for the meta-pipeline in Jenkins use the following

repositoryUrl = "https://github.com/buildit/jenkins-pipeline-examples.git"
script = "pipelines/meta-pipeline.groovy"
branch = "development"

source = "development"
target = "stable"

node () {
    git url: repositoryUrl, credentialsId: "git-credentials", branch: branch
    load script    
}