You can use the plugin at http://wiki.jenkins-ci.org/display/JENKINS/Join+Plugin
Basically you create 3 tasks:
A = your prebuild ste
B = your main task
C = your trigger.
You build C. It calls A, and once A is successful, it calls B. The plugin page gives you more information. The good thing about this plugin is that you can have any number of pre-build jobs.
In fact, we have a set of 5 pre-build tasks before our main program starts.
================================================= =
If you do not want to try this:
If you are using Linux, you can do the following from your shell script:
wget http://yourserver/hudson/job/MyJob/build?delay=0sec
This will trigger the task. The bad part about this is that he will not wait for the task to complete.
Sagar Mar 30 2018-11-11T00: 00Z
source share