Jenkins 神器短 URL / 漂亮 url

发布于 2025-01-19 16:21:17 字数 613 浏览 2 评论 0原文

如何为Jenkins构建输出文件的直接短URL。

我的最后一个成功的构建位于这条路。

https://jenkins.domain.com/job/org_repo_folder/job/project/job/job/job/release/release/build_number/artifact/ApplicationMomodule/build/build/build/Outputs/apk/release/release/appname/appname_version.apion.apk

“ 带有短URL或路径的文件?

用例:

  1. 长URL暴露了构建路径。
  2. 带有长URL的电子邮件在垃圾邮件文件夹中结束。
  3. 用简单的URL构建共享

How to get a direct short URL for the jenkins build output file.

My last successful build is located at this path.

https://jenkins.domain.com/job/Org_repo_folder/job/project/job/release/build_number/artifact/ApplicationModule/build/outputs/apk/release/AppName_version.apk

How do I access the file with a short URL or path?

Use case:

  1. Long url exposes the build path.
  2. Emails with long urls ends at spam folder.
  3. Build sharing with simple URLs

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦归所梦 2025-01-26 16:21:17

如果您正在寻找 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 the userContent URL as a short URL for that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文