无法打开 Blue Ocean 可视化管道编辑器 [英] Cant open Blue Ocean visual pipeline editor

查看:41
本文介绍了无法打开 Blue Ocean 可视化管道编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我安装了 Blue Ocean 插件,但我不知道如何使用插件的 UI 编辑或创建管道.

Recently I installed Blue Ocean plugin, but I can't find out how to edit or create pipeline using plugin's UI.

当我在 Blue Ocean 中创建新管道并连接 GitLab 存储库时,我没有创建/编辑管道(Jenkinsfile 文件)的选项.无论 repo 是否包含它.当 Ocean 连接到 git 服务器时,创建结束.

When I create new pipeline in Blue Ocean and connect with GitLab repo, I don't have option to create/edit pipeline (Jenkinsfile file). No matter if repo contains it or not. When Ocean connects to git server creation is over.

我无法通过 URL ([local-address]/blue/organizations/jenkins/pipeline-editor/[project-name]) 打开可视化管道编辑器.我收到带有消息的错误警报:

I cannot open visual pipeline editor via URL ([local-address]/blue/organizations/jenkins/pipeline-editor/[project-name]). I get error alert with message:

加载管道时出错

从该存储库中的 Jenkinsfile 加载管道时出错.通过使用声明性语法编辑 Jenkinsfile 来更正错误,然后将其提交回存储库.

There was an error loading the pipeline from the Jenkinsfile in this repository. Correct the error by editing the Jenkinsfile using the declarative syntax then commit it back to the repository.

服务器错误

同时脚本在 Blue Ocean 的分支选项卡中完美运行.它显示了步骤、工件、输出等.

Meanwhile script works perfectly in Blue Ocean's branches tab. It shows steps, artifacts, outputs, etc.

我也尝试过教程页面中的简单脚本示例.他们都不能说服可视化编辑器他们没问题.当然,所有这些脚本都是声明性的.

I've tried also with example, trivial scripts from tutorial pages. None of them can convince visual editor that they are OK. Of course all this scripts are declarative.

你有类似的问题吗?也许我必须使用一些特殊类型的 Jenkinsflie?除了直接 URL 之外,我找不到其他访问编辑器的方法似乎很奇怪.

Did you have similar problems? Maybe I have to use some special type of Jenkinsflie? Fact that I can't find other way to get to editor other than direct URL seems to be strange.

推荐答案

Blue Ocean 的管道编辑器似乎无法正常工作,因为它仍在开发中.

Blue Ocean's pipeline editor does not seem to work properly, cause it still in development.

虽然,我找到了四处走走.为了能够在精美的可视化编辑器中编辑脚本,您必须打开编辑器的沙盒模式页面:

Although, I have found walk-around. To be able to edit script in fancy visual editor you have to open editor's sandbox-mode page:

[your_jenkins_URL/blue]/organizations/jenkins/pipeline-editor/

[your_jenkins_URL/blue]/organizations/jenkins/pipeline-editor/

然后你必须使用魔法快捷键Ctrl+S(因为按钮是老式的).Ta-da 你现在可以访问显示的东西的代码了.

Then you have to use magic shortcut Ctrl+S (cause buttons are old-fashioned). Ta-da you now have access to code of displayed things.

使用此应用进行更改后,请随意粘贴您的代码并复制回来.

Feel free to paste your code and copy back after making changes using this app.

这篇关于无法打开 Blue Ocean 可视化管道编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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