Unfortunately those wouldn't work. Simply rescheduling the build wouldn't correct the problem that the external dependency doesn't exist. Now yes, someone could detect the failure and manually execute a build on the dependency to rectify the problem before the rescheduled build takes place, but that doesn't rectify the problem.
I've been trying to get the following plugin to work:
https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+PluginHowever, I cannot seem to get the conditional build step to run after a failed step. For example, I defined a sequence:
1. copy artifacts->sim-common-linux64/SIM_COMMON_REV=${SIM_COMMON_REV}
2. conditional build step: Run? Current build status (worst: aborted best: unstable)
Steps to run if condition is built:
2a. Trigger/call builds on other projects: sim-common-linux64
2b. copy artifacts->sim-common-linux64/SIM_COMMON_REV=${SIM_COMMON_REV}
However, the conditional steps are never executed. See the following output:
Started by user davidsj2
[EnvInject] - Loading node environment variables.
Building remotely on AST-Linux-x64-scts01 in workspace /disk01/BUILD/workspace/sast_product_linux64
[sast_product] $ hg showconfig paths.default
[sast_product] $ hg pull --rev default
[sast_product] $ hg update --clean --rev default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
[sast_product] $ hg log --rev . --template {node}
[sast_product] $ hg log --rev . --template {rev}
[sast_product] $ hg log --rev 8f947e56c1a6693687e8097fb50bba1626989ea6
[sast_product] $ hg log --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev default:0 --follow --prune 8f947e56c1a6693687e8097fb50bba1626989ea6
Run condition [Current build status] enabling prebuild for step [BuilderChain]
Unable to find a build for artifact copy from: sim-common-linux64/SIM_COMMON_REV=zomg
Build step 'Copy artifacts from another project' marked build as failure
Archiving artifacts
Recording fingerprints
Notifying upstream projects of job completion
Finished: FAILURE
You can see that the run condition seems to be enabled. Then the intital copy fails, but the conditional build step never runs.