Jenkins 神器短 URL / 漂亮 url
如何为Jenkins构建输出文件的直接短URL。
我的最后一个成功的构建位于这条路。
“ 带有短URL或路径的文件?
用例:
- 长URL暴露了构建路径。
- 带有长URL的电子邮件在垃圾邮件文件夹中结束。
- 用简单的URL构建共享
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正在寻找 Jenkins 内部解决方案,那么您可以使用
userContent
功能。例如,Jenkins 在 URL
$JENKINS_URL/userContent/file.apk
下的$JENKINS_HOME/userContent/file.apk
下提供数据。如果您将要提供的数据复制(或符号链接)到 $JENKINS_HOME/userContent/,则可以使用
userContent
URL 作为该数据的短 URL。If you're looking for a Jenkins-internal solution, then you could use the
userContent
feature.E.g., Jenkins serves data under
$JENKINS_HOME/userContent/file.apk
under 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 theuserContent
URL as a short URL for that.