How to trigger two job from single job in Jenkins
<p>I have one main Job on Jenkins.
I also created two jobs:</p>

<ul>
<li>One job for scm changes build</li>
<li>One for Scheduled Build</li>
</ul>

<p>In both job I gave the same configuration file as well as workspace.
I just give the name of job different.</p>

<p>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.</p>

<p>When both trigger is started from main job, as same time that is SCM changes and scheduled build.</p>

<p>I am getting error due to in both job I gave the same workspace.</p>

<p>How to decide through script from main job when Scheduled build is over then start SCM change build?</p>