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
1
vote
1 answer

Unique assignment of Xvfb display to multiple concurrent Jenkins jobs

I have a build flow job in Jenkins that can execute concurrent builds. Each build in a single running instance of the job can run multiple UI tests, where each test set should run on a unique Xvfb port. I am using the Xvfb plugin. Conceptually…
1
vote
1 answer

How to re-write a Jenkins DSL file as a Jenkins pipeline jenkinsfile?

I have the following Jenkins DSL file: if (params["BUILD_SNAPSHOT"] == "true") { parallel( { build("company-main-build-snapshot") }, { build("1-company-worker-build-snaphsot", WORKER_NAME:…
Itai Ganot
  • 5,873
  • 18
  • 56
  • 99
1
vote
1 answer

How to use generated variables from one job in jenkins build flow and utilize those into next job in the same jenkins build flow

I have 3 jobs configured on jenkins build flow and the desired activity is to get dynamic variables resulted from post-build task of b1 to b2 and variables of b2 to b3 and so on so forth. list = ["foo", "bar"] b1 = build("ExecuteJob1", param1:…
1
vote
1 answer

Build Flow Plugin While Loop

I'm trying to setup a build flow plugin to constantly run a job forever until you cancel the build flow. while(true){} works, but absolutely isn't safe, as if you mess up the parameters, it'll just cause the flow to enter an endless loop and become…
Hytamo
  • 21
  • 6
1
vote
0 answers

NULL pointer Exception in Groovy postbuild Script

I am using the build flow project for combining the two different project test results.Then i am in need to change the build status of the aggregated test results so i am using groovy postbuild to change my build status.In that script if any one of…
gautham
  • 21
  • 2
1
vote
0 answers

Jenkins - start a job from Build Flow Job with the same build number as the running job

With DSL I can do something like: bnumber = build.environment.get("BUILD_NUMBER") build("Compile.Net", BUILD_NUMBER: bnumber) which is great. It seems to set the BUILD_NUMBER var of the downstream job. However the display name is still with the…
vezenkov
  • 4,009
  • 1
  • 26
  • 27
1
vote
1 answer

Pass Choice Parameter to Another Job in Jenkins with DSL Build Flow

I'm using the Build Flow plugin to perform parallel builds. I need to pass a choice parameter (branch_name) from the parent job to the child jobs. I'm unsure how to get this working. The choice parameter has multiple branch names. How can I do…
0
votes
1 answer

Execute Windows batch command in Jenkins for Java Program

I am facing error when creating a Build on Jenkins. Following are the steps i have done. Step1: Create Folder "Java_Project" Create File "Hello.Java" public class Hello { public static void main(String[] args) { for (int i = 1; i <= 5;…
Malik
  • 23
  • 6
0
votes
0 answers

Changes since last successful build does not work in Jenkins after installation

I have installed- https://plugins.jenkins.io/changes-since-last-success/ in my jenkins. But now, when my build has failed then the commits done for that particular build are not visible in the next successful build. I can't see this changes since…
0
votes
0 answers

ERROR: Failed to clean the workspace jenkins.util.io.CompositeIOException: Unable to delete

While building jenkins job, jenkins pipeline unable to delete the files because of the below error same code working for other jobs. unable to figure out the problem . Why does jenkins pipeline causes these type of error. Can any one help me with…
0
votes
1 answer

I have Job A and B in Jenkins. How can I always execute a file in the most recent build of A in the build steps in job B

I have these Jenkins jobs A and B. Job A Builds a bunch of Files for my project. In Job B i wanna execute a command to run a file in the most recent build of job A. My execution even works fine, but only because I have hard coded the build number…
0
votes
0 answers

Triggering a downstream job in Jenkins using injected environment variable doesn't work?

I have 2 Jenkins jobs namely test-trigger1 and test-trigger2 and I want to set up test-trigger1 to trigger test-trigger2 using an injected environment variable. So in test-trigger1's Configure->Build Environment->Inject environment variables to the…
Chris F
  • 14,337
  • 30
  • 94
  • 192
0
votes
1 answer

How to get Jenkins build failure reason using python api

I want to get the Jenkins build failure reason (Not Status) using the Python API. I searched the Jenkins API and other available modules like, jenkinsapi and Python Jenkins but did not find method which can return failure reason. Another option I…
Nilesh
  • 69
  • 1
  • 11
0
votes
2 answers

How to implement build after another project is built through a Jenkins file

For a project A I want to trigger it's build when B is built successfully.I can achieve this through the Jenkins console by selecting the option from Build trigger. Now I wanna achieve this by writing corresponding steps in Jenkins file of project…
Pranav Pawar
  • 1
  • 1
  • 1
0
votes
1 answer

Does a master Jenkins keep track of a dynamic job created on a slave node?

Amidst a Jenkins job build, using a Groovy script, we can create new jobs dynamically. More on this. We have a one-master-and-n-slave-nodes architecture. We create any Jenkins job (say some-pipeline-job) that gets configured on the master Jenkins…
overexchange
  • 15,768
  • 30
  • 152
  • 347