Top "Jenkins-workflow" questions

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

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 do I implement a retry option for failed stages in Jenkins pipelines?

I have a Jenkinsfile with multiple stages and one of them is in fact another job (the deploy one) which …

groovy jenkins-workflow jenkins-pipeline jenkinsfile
How to execute a command in a Jenkins 2.0 Pipeline job and then return the stdout

Is there a better way to run a shell task in a Jenkins 2.0 pipeline and then return the stdout of …

jenkins groovy jenkins-workflow jenkins-pipeline jenkins-2
Jenkins pipeline plugin: set the build description

I'm trying to replace our current build pipeline, currently hacked together using old-school Jenkins jobs, with a new job that …

jenkins jenkins-pipeline jenkins-workflow
How can I perform HTTP POST requests from within a Jenkins Groovy script?

I need to be able to create simple HTTP POST request during our Jenkins Pipeline builds. However I cannot use …

jenkins groovy jenkins-plugins jenkins-workflow
How to add build parameters to jenkins multibranch pipeline?

I would like to add additional build parameters to my jenkins mutibranch pipeline job. Relevant versions: org.jenkins-ci.plugins:script-security:1.19 …

jenkins jenkins-workflow jenkins-2
Job DSL to create "Pipeline" type job

I have installed Pipeline Plugin which used to be called as Workflow Plugin earlier. https://wiki.jenkins-ci.org/display/JENKINS/…

jenkins jenkins-plugins jenkins-pipeline jenkins-workflow jenkins-job-dsl
Jenkins Groovy how to call methods from @NonCPS method without ending pipeline

I need to parse some JSON in a Jenkins Pipeline and call some regular methods in a loop, however the …

jenkins groovy cloudbees jenkins-workflow
Jenkins: Trigger Multi-branch pipeline on upstream change

I am currently testing the pipeline approach of Jenkins 2.0 to see if it works for the build environment I am …

jenkins jenkins-workflow jenkins-2 jenkinsfile