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).

How can I trigger another job from a jenkins pipeline (jenkinsfile) with GitHub Org Plugin?

How can I trigger build of another job from inside the Jenkinsfile? I assume that this job is another repository …

jenkins groovy jenkins-workflow jenkins-pipeline
Get absolute path to workspace directory in Jenkins Pipeline plugin

I'm currently doing some evaluation on the Jenkins Pipeline plugin (formerly know as Workflow plugin). Reading the documentation I found …

jenkins jenkins-workflow jenkins-pipeline
How can I test a change made to Jenkinsfile locally?

When writing jenkins pipelines it seems to be very inconvenient to commit each new change in order to see if …

jenkins jenkins-workflow jenkins-pipeline
Is it possible to capture the stdout from the sh DSL command in the pipeline

For example: var output=sh "echo foo"; echo "output=$output"; I will get: output=0 So, apparently I get the exit …

jenkins jenkins-workflow jenkins-pipeline
How to implement Post-Build stage using Jenkins Pipeline plug-in?

After reading Jenkins tutorial explaining Pipeline plug-in, it seems that plug-in should make it possible to implement Post-Build steps. However …

jenkins jenkins-workflow jenkins-pipeline
Show a Jenkins pipeline stage as failed without failing the whole job

Here's the code I'm playing with node { stage 'build' echo 'build' stage 'tests' echo 'tests' stage 'end-to-end-tests' def e2e = …

jenkins groovy jenkins-workflow jenkins-pipeline
How do I use Jenkins Pipeline properties step?

I am studying capabilities of Jenkins Pipeline:Multibranch. It is said that a recently introduced properties step might be useful …

jenkins jenkins-pipeline jenkins-workflow
How can I reference the Jenkinsfile directory, with Pipeline?

I have a groovy file, I want to run from the Jenkinsfile. ie. load script.groovy However, I am not …

jenkins groovy jenkins-workflow jenkins-pipeline jenkinsfile
How can I use the Jenkins Copy Artifacts Plugin from within the pipelines (jenkinsfile)?

I am trying to find an example of using the Jenkins Copy Artifacts Plugin from within Jenkins pipelines (workflows). Can …

groovy jenkins-workflow jenkinsfile
How to set variables in a multi-line shell script within Jenkins Groovy?

Suppose I have a Groovy script in Jenkins that contains a multi-line shell script. How can I set and use …

jenkins groovy jenkins-workflow