Top "Jenkins-pipeline" questions

Questions about the Jenkins “Pipeline” plugin suite (formerly “Workflow”). Not about pipelines in Jenkins in general (e.g. using downstream jobs).

Jenkins scripted pipeline or declarative pipeline

I'm trying to convert my old style project base workflow to a pipeline based on Jenkins. While going through docs …

jenkins continuous-integration jenkins-pipeline
How to create methods in Jenkins Declarative pipeline?

In Jenkins scripted pipeline we are able to create methods and can call them. Is it possible also in the …

jenkins groovy jenkins-pipeline jenkins-groovy jenkins-declarative-pipeline
How to view Jenkins workspace on a Pipeline job?

How can I view Jenkins workspace on a Pipeline job (it was called workflow job previously)? In a standard Job …

jenkins jenkins-pipeline
Correct usage of stash\unstash into a different directory

In one of my stages I need to copy the contents of two folders after a build is completed and …

jenkins jenkins-plugins jenkins-pipeline
How to write Pipeline to discard old builds?

The groovy syntax generator is NOT working for sample step properties: Set Job Properties. I've selected Discard old builds and …

jenkins jenkins-pipeline
How to invoke a jenkins pipeline A in another jenkins pipeline B

I have two Jenkins pipelines, let's say pipeline-A and pipeline-B. I want to invoke pipeline-A in pipeline-B. How can I …

jenkins jenkins-pipeline jenkins-2
Get username logged in Jenkins from Jenkins Workflow (Pipeline) Plugin

I am using the Pipeline plugin in Jenkins by Clouldbees (the name was Workflow plugin before), I am trying to …

jenkins groovy jenkins-pipeline cloudbees
Continue Jenkins pipeline past failed stage

I have a series of stages that perform quick checks. I want to perform them all, even if there are …

jenkins jenkins-pipeline
Jenkins Workflow Checkout Accessing BRANCH_NAME and GIT_COMMIT

I cannot seem to extract $GIT_COMMIT and $BRANCH_NAME from a Jenkins Workflow Checkout step. I would like to …

jenkins groovy jenkins-plugins jenkins-workflow jenkins-pipeline
How to read properties file from Jenkins 2.0 pipeline script

I am attempting to write a pipeline script to use with Jenkins 2.0 to replicate our existing build. This original build …

jenkins groovy build jenkins-pipeline environment