I have a job NIGHTLY
that runs one time each night by a periodical timer.
Now I want to change so that the NIGHTLY
job is only run if the last execution of another job FOO
in Hudson is successful.
Note:
- Job
FOO
is run many times each day and is triggered by SCM. NIGHTLY
should only be run one time per night and at a specific time.
Currently I have another job NIGHTLY_TRIGGER
that runs a bash script that access the remote API of job FOO
to check if job FOO
is successful and if so triggers the NIGHTLY job.
Are there a nicer/cleaner way to do this? (preferable by using some Hudson plugins)