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

Create a file with some content using Groovy in Jenkins pipeline

I am trying to create a file called groovy1.txt with the content "Working with files the Groovy way is …

jenkins groovy jenkins-pipeline jenkins-job-dsl jenkins-groovy
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
How to trigger Multibranch Pipeline build with github webhook

In freestyle job there is an option named "GitHub hook trigger for GITScm polling" on stage Build Trigger. screen capture …

jenkins jenkins-pipeline multibranch-pipeline
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 to trigger a Jenkins 2.0 Pipeline job from a GitHub pull request

It looks like the GitHubPullRequestBuilder is not compatible with Jenkins v2.0 pipeline jobs. How do you configure a pipeline job …

github jenkins jenkins-pipeline jenkins-2
How do I set a default choice in jenkins pipeline?

quite frustrating I can't find an example of this. How do I set the default choice? parameters { choice( defaultValue: 'bbb', …

jenkins jenkins-plugins jenkins-pipeline
How to specify when branch NOT (branch name) in jenkinsfile?

How can I specify something like the following in my Jenkinsfile? when branch not x I know how to specify …

jenkins groovy continuous-integration jenkins-pipeline
What is the difference between a node, stage, and step in Jenkins pipelines?

I'm trying to understand how to structure my Jenkins 2.7 pipeline groovy script. I've read through the pipeline tutorial, but feel …

jenkins jenkins-pipeline
Jenkins pipeline script to copy or move file to another destination

I am preparing a Jenkins pipeline script in Groovy language. I would like to move all files and folders to …

java-stream jenkins-pipeline jenkins-groovy
Updating environment global variable in Jenkins pipeline from the stage level - is it possible?

I have a Jenkinsfile with some global variables and some stages. can I update the global variable out from a …

jenkins groovy jenkins-pipeline