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: Ignore failure in pipeline build step

With jenkins build flow plugin this was possible: ignore(FAILURE){ build( "system-check-flow" ) } How to do this with Declarative Pipeline syntax?

jenkins jenkins-pipeline
How do I prevent two pipeline jenkins jobs of the same type to run in parallel on the same node?

I do not want to allow two jobs of the same type (same repository) to run in parallel on the …

jenkins-pipeline
Jenkinsfile Declarative Pipeline defining dynamic env vars

I'm new to Jenkins pipeline; I'm defining a declarative syntax pipeline and I don't know if I can solve my …

jenkins jenkins-pipeline
Jenkins Pipeline NotSerializableException: groovy.json.internal.LazyMap

Solved: Thanks to below answer from S.Richmond. I needed to unset all stored maps of the groovy.json.internal.…

json jenkins groovy jenkins-pipeline
Jenkins: Pipeline sh bad substitution error

A step in my pipeline uploads a .tar to an artifactory server. I am getting a Bad substitution error when …

bash jenkins groovy jenkins-pipeline
How to get the BUILD_USER in Jenkins when job triggered by timer?

I wanted to show the user who triggered a Jenkins job in the post job email. This is possible by …

jenkins jenkins-plugins jenkins-pipeline
Read interactive input in Jenkins pipeline to a variable

In a Jenkins pipeline, i want to provide an option to the user to give an interactive input at run …

jenkins groovy jenkins-pipeline jenkins-2
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 to send Slack notification after Jenkins pipeline build failed?

I have a pipeline groovy script in Jenkins v2.19. Also I have a "Slack Notification Plugin" v2.0.1 and "Groovy Postbuild …

jenkins groovy jenkins-pipeline slack
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