Jenkins管道构建:在UI中查看工作区 [英] Jenkins Pipeline Builds: Viewing Workspace in the UI

查看:342
本文介绍了Jenkins管道构建:在UI中查看工作区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们现在正在尝试使用多分支管道版本.该功能的主要优点是,它使我们能够在创建新分支时自动创建新的Jenkins作业.

We are now experimenting with multi-branch Pipeline builds. The main advantage of the feature is that it allows us to automatically create new Jenkins jobs whenever a new branch is created.

但是,与使用UI选择构建方式的旧方法相比,实现起来要困难一些.另外,某些功能似乎丢失了.

However, it also is a bit more difficult to implement than the old way of selecting how to do the build using the UI. Plus, certain features seem to be missing.

例如,在Jenkins Freestyle作业中,我们能够使用Jenkins UI浏览工作空间,下载单个文件,甚至擦除工作空间.当构建出现问题或开发人员需要未存档的特定构建资产时,我们发现这很有用.

For example, in Jenkins Freestyle jobs, we are able to use the Jenkins UI to browse through the workspace, download individual files, and even wipe out the workspace. We found this helpful when builds went awry or if the developer needed a particular built asset that wasn't archived.

我在Jenkins Pipeline作业中注意到,UI不再提供对工作空间的访问.我知道我可以存档工作区,但是我真的不想保存它-尤其是对于每个构建.我只是希望能够浏览工作区或清理它,以防在构建过程中出现问题.

I've noticed in the Jenkins Pipeline jobs the UI no longer offers access to the workspace. I know I can archive the workspace, but I really don't want to save it -- especially for each and every build. I simply want to be able to browse the workspace or clean it out if something is causing problems with the build process.

有没有办法通过管道恢复此功能?我不想为每个构建都归档工作空间(空间问题),但是我确实希望能够看到工作空间在出现问题时的样子.

Is there a way to get back this feature via the pipeline? I don't want to archive the workspace for each build (space issues), but I do want to be able to see what the workspace looks like if there are problems.

推荐答案

您可以通过三个简单的步骤查看工作空间:

You can see your work space in three simple steps:

  1. 首先,转到您感兴趣的构建运行,然后单击管道步骤".

  1. First, go to the build run you are interested in and click "pipeline steps".

然后单击分配节点:开始".如果您有多个节点,则需要多次执行此操作.

Then click "allocate node: start". If you have multiple nodes, you’ll need to do this more than once.

然后单击工作区链接. (显示在左窗格中).

Then you click the workspace link. (it appears on the left pane).

这篇关于Jenkins管道构建:在UI中查看工作区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆