1

I have a job that updated my workspace and after will compile projects.

I need have a job (A) for update my workspace and other job (B) that first executed the job A (like a prebuild) and after will compile my project.

1

1 Answer 1

4

Under the "Build Triggers" option on the job configuration page, check the "Build after other projects are built" checkbox, and then enter the name of the precursor job in the textbox which appears. You can also configure whether you would like the job to run only if its precursor is stable, for example.

So in this case, you would configure job B to run upon completion of job A (as described above), probably requiring that job A completed successfully.

9
  • I configured a job "A" (that will update the workspace). In other job "B", in the option "Build Triggers" I checked "Build after other projects are built" and in "Projects to watch" I added the job "A". But, when I execute the job "B" in the console output there is nothing to indicate that the job A was completed. I need: - Not display the log when be update the workspace when execute the job B. - Just write that the job "A" is finish and execute the job B. Is this possible?
    – hdmq
    Commented Oct 2, 2014 at 20:26
  • I'm afraid I don't quite understand the second part of your comment - would you mind rephrasing for me please? However, from the first part of your comment, it sounds like you may be doing things the wrong way round. If you configure job B with the "Build after other projects are built" option, then it's job A that you need to execute for job B to run subsequently. If you execute job B directly, then that's the only job that will run, as job A has no rules telling it to run after job B. Commented Oct 2, 2014 at 20:35
  • I need exactly this: "then it's job A that you need to execute for job B to run subsequently"
    – hdmq
    Commented Oct 2, 2014 at 21:09
  • Execute first the job "A", after the job "B" (like a pre-Build)
    – hdmq
    Commented Oct 2, 2014 at 21:13
  • Okay, well you should be able to achieve that by configuring job B to have the "Build after other projects are built" option and then by directly executing job A (which will automatically run job B afterwards). Or have you done that but it doesn't work? Commented Oct 2, 2014 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.