Reputation: 47
I have one main Job on Jenkins. I also created two jobs:
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?
Upvotes: 0
Views: 4171
Reputation: 21130
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.
Upvotes: 2