It is possible to navigate to an artifact from the latest build using a URL of the form:
[base URL]/download/[project key]-[plan key]/artifacts/latest/[artifact name]
At present, this is implemented by generating a static HTML file containing a client-side refresh.
This has at least a couple of disadvantages:
- It does not work well with tools such as wget and curl, that do not make use of the client-side refresh; and
It breaks if an artifact is subsequently deleted.
We should instead dynamically generate a 302 Found response.