How to trigger build pipeline job in Jenkins after some successful builds of another 5 jobs? I tried to use Build trigger but it work only for one successful build job, but not for all five of them.
Related
->I have around 20 jobs which needs to be deployed parallel
I want to trigger these 20 jobs from single jenkins job.
I need to use those 20 jobs as build parameters in single jenkins job so i can choose which job to deploy.
Can someone help me with this requirement if there is any plugin or workaround?
I tried below options:
Active choices plugin and build flow plugin are not compatible with the current jenkins version 1.642 which i am using.
Multijob project can only deploy all jobs at once parallel but doesn't give any option/condition to run particular job.
Currently i am working on multijob phase project jenkins
I am trying to use some conditions in Multijob phase project but jobs not triggered as expected, If someone knows using conditions in multijob phase please lemme know
Thank you
Gurus,
I have 4 jenkins jobs which I am triggering based on success and failure of previous job execution status.
Is there any way I can combine all the 4 jobs in a jenkins pipeline and have the same logic of checking if the previous execution successful or not?
There are two jobs in my jenkins server
job1 : build every 10 minutes to scan the events, if happens it triggers the downstream job2
job2 : normal job mostly run once in the case.
Problem:
too many useless jenkins build for job1 in the UI since it runs frequently.
It will be good if the build can be discarded if it doesn't trigger the downstream job.
Solution so far:, using Discard Old build plugin in post build action is one direction, but no clue how to get it works nicely.
With the hints from #JamesD's comments, I can use several plugins to achieve this
Archive artifacts Plugin: to archive the param.txt files which is used to path to downstream jobs
Groovy Postbuild job Plugin: add the groovy script to check whether the param.txt exists or not. The build will be set to Abort if it doesn't exists
Discard Old Builds Plugin: will discard the Abort build
I have one main Job on Jenkins.
I also created two jobs:
One job for scm changes build
One for Scheduled Build
In both job I gave the same configuration file as well as workspace.
I just give the name of job different.
Now from the main job through script I'm triggering SCM changes build which is success.
Again from the main job through script I am triggering Scheduled Build which is success.
When both trigger is started from main job, as same time that is SCM changes and scheduled build.
I am getting error due to in both job I gave the same workspace.
How to decide through script from main job when Scheduled build is over then start SCM change build?
Trigger the SCM change build from the scheduled build instead of the main job, using the "Trigger / call builds on other projects" option in the main job's build steps.
I am currently using the Promoted Builds Plugin to promote jobs into QA, Test, Production, etc. This plugin is really great for promoting a single job. However I am looking for a way to promote the parent job and have that job promote the rest of the downstream jobs with the corresponding build.
Here is an example. Lets say I have 3 jobs that are all triggered from an upstream job:
Job 1 - Build 200 - Parent job kicks off job 2 upon successful build
Job 2 - Build 400 - Job 2 kicks off job 3 upon successful build
Job 3 - Build 300 - Job 3 builds after job 2 is successful
After this is done I want to be able to promote job 1 build 200 and have that job also promote job2 build 400 and job 3 build 300 since these are the artifacts that were built together in the downstream relationship.
This can be easily done by actually building the jobs and automatically promoting them, but I do not want to build as the artifacts have already been created.
Any help is much appreciated!