Start other Job from Jenkinsfile or wait until other job is finished

26 views
Skip to first unread message

David Koenig

unread,
Aug 5, 2020, 9:55:11 AM8/5/20
to Jenkins Users

Hi,

i want to start another Jenkinsjob from within my declarative Jenkinsfile. I do that with following command:

build job: 'My-gitea-org/my-gitea-repo2/master', wait: true

This sub-job (my-gitea-repo2) will be triggered by several other jobs. So i want to check if the sub-job is currently running and i want to wait in my main job until its finished and then start the sub-job. Is that possible?

Regards

Dave

Reply all
Reply to author
Forward
0 new messages