Skip to content

Sandipp1591/jenkins-pipeline-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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    
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%