Can we pause a job and run depending upon completion of another job?

Brass Contributor

Team,

 

I have 2 jobs in a stage each having 4 tasks. Is it possible if first 2 tasks of Job 1 executes and then this jobs shall pause. After this, Job 2 will execute and complete all of its tasks. Then other 2 tasks of Job 1 will execute.

 

Can we do it by any chance. Please suggest.

 

Kind Regards,

Tanul

1 Reply

@tanulbhasin 

How about leveraging 'dependsOn'?

 

 - job: job100
    dependsOn: job99
    condition: succeeded()