How to get a direct short URL for the jenkins build output file.
My last successful build is located at this path.
How do I access the file with a short URL or path?
Use case:
- Long url exposes the build path.
- Emails with long urls ends at spam folder.
- Build sharing with simple URLs
If you're looking for a Jenkins-internal solution, then you could use the
userContentfeature.E.g., Jenkins serves data under
$JENKINS_HOME/userContent/file.apkunder the URL$JENKINS_URL/userContent/file.apk.If you copy (or symlink) the data that you want to provide to
$JENKINS_HOME/userContent/, then you can use theuserContentURL as a short URL for that.