Questions tagged [jenkins-build-flow]

Build Flow plugin for the Jenkins continuous integration server.

The Build Flow plugin for the Jenkins continuous integration server software enables defining upper level Flow item to manage job orchestration and link up rules, using a dedicated domain-specific language (DSL). This DSL makes the flow definition very concise and readable.

Links:

66 questions
60
votes
3 answers

How do I make Jenkins build fail when Maven unit tests fail?

I'm using Jenkins, Maven 3.1, and Java 1.6. I have the following Maven job set up in Jenkins with the following goals and options ... clean install -U -P cloudbees -P qa below is my pom.xml surefire configuration ...
Dave A
  • 2,780
  • 9
  • 41
  • 60
20
votes
2 answers

How to fix NotSerializableException error during Jenkins workflow build?

When I run the following code on the Jenkins workflow (Jenkins 1.609.1 ,workflow 1.8) I get error of 'NotSerializableException' (also below). However, if I move the "build job" outside the "for" scope it works fine (the job is activated). Any ideas…
oTolev
  • 231
  • 1
  • 2
  • 10
9
votes
2 answers

Jenkins Build Flow versus Workflow (Pipeline) plugin

I notice there are (at least) two orchestration options for Jenkins Build Flow Workflow - Now known as Pipeline I found Build Flow first and implemented an orchestration job around that which seems to work OK for our needs. Are there any…
6
votes
4 answers

Access files on a node slave from Jenkins master using Groovy

I am using the Jenkins Build Flow plugin to achieve parallelization. The Groovy DSL does certain file operations. Even though the option Restrict where this project can be run is set to run the job on a specific slave, the DSL runs on master. This…
techjourneyman
  • 1,701
  • 3
  • 33
  • 53
4
votes
1 answer

Programmatically access children builds in Jenkins build flow

I have a build flow pipeline (https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin) setup in Jenkins that spawns two or more children jobs each of which runs Junit tests. def childjobs = [] // some logic to populate the children jobs…
techjourneyman
  • 1,701
  • 3
  • 33
  • 53
4
votes
4 answers

How can I trigger a Jenkins job upon completion of a set of other jobs?

The simple case where you just have one job depending on the completion of a set of other jobs is easy: either use a multijob or use the build flow plugin with parallel { ... }. The case I am trying to solve is more general, for example: JobA…
4
votes
3 answers

Access Denied : UserXXX is missing the Overall/Read permission

I am working with jenkins, unfortunately i was added one user as admin I forgot that password for that user, So when i try to login with other users its showing like below image. I was trying to set false to userSecurity in config.xml and restart…
3
votes
1 answer

How to do a post-build task based off the exit code of the build script?

I want to be able to read the exit code of the build script, from my post-build script. Is there a way to do that in Jenkins configuration? it will allow me to check for a matching string (in this case 'hella success rn') but it won't let me see…
user12374570
3
votes
1 answer

Read DSL from file in Jenkins outside of workspace

I know its possible to run a .dsl file from an external source instead of just writing the code of the flow in the job's description, but every time I try to run lets say: /home/flows/flow_script.dsl I get the following…
johan855
  • 1,578
  • 4
  • 26
  • 51
3
votes
1 answer

run jenkins DSL script on slave

I have a Build Flow project that has a DSL script to configure the flow. This is my script: def envVars = build.getEnvironment(listener) def revision = envVars.get("GIT_COMMIT") def workspace = envVars.get("WORKSPACE") println "env vars: " +…
Mr T.
  • 4,278
  • 9
  • 44
  • 61
3
votes
3 answers

Run next job in sequence even if the previous job fails in a Jenkins Build flow

I have a build flow which builds 4 jobs in sequence eg; build(Job 1) build(Job 2) build(Job 3) build(Job 4) I want to run Job 4 even if any of the previous job fails also . How can I do that in the build flow ?
2
votes
1 answer

Jenkins not able to locate git on my laptop. The recommended git tool is: NONE

I have specified the path of git in both Configure System and Global Tool configuration in jenkins but still jenkins is showing "The recommended git tool is: NONE" in console output.
2
votes
2 answers

Failed to copy error while copying mobileprovision file in Jenkins

jenkins is installed in OS X Sierra and I am trying to create a job I have uploaded provisioning file in KeyChain and Provisioning Profiles Management plugin. In job configuration, in Build environment section, Mobile Provisioning Profile,…
2
votes
1 answer

Jenkins - How to set environment variables using Groovy Postbuild plugin

I have done a lot of google for this issue and found nothing that would help to solve my issue. I am trying to parse the Jenkins job's console output and set environment variable. I would need this variable in my parent job which would be running…
abdulH
  • 375
  • 1
  • 6
  • 19
2
votes
1 answer

Using loop to run parallel builds using build-flow plugin in Jenkins

I am using the build flow plugin to run tasks in parallel in Jenkins. Initially it was this that works: parallel ( { build("jobX", param: params["inputVal1"]) }, {build("jobX", param: params["inputVal2"]) } ) However, my need now…
1
2 3 4 5