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

查看:895
本文介绍了无法打开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文件)的选项.无论回购是否包含它.当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([本地地址]/blue/organizations/jenkins/pipeline-editor/[项目名称])打开可视管道编辑器.我收到错误提示消息:

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

加载管道时出错

Error loading Pipeline

从此存储库中的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:

[您的jenkins_URL/蓝色]/organizations/jenkins/pipeline-editor/

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

然后,您必须使用魔术快捷键 Ctrl + S (因为按钮是老式的).塔达,您现在可以访问显示的事物的代码.

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天全站免登陆