20

Where is the pipeline editor located within the Blue Ocean Jenkins plugin?

I can see my pipeline jobs, and when clicking into these I cant see any links\buttons that take me to the editor.

I'm sure in previous beta releases I could get to it, but now since the official release has been launched which I am now using, I cannot find it.

Anyone know where it's hiding?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
mindparse
  • 6,115
  • 27
  • 90
  • 191

7 Answers7

13

Use following url to open the pipeline editor:
http://<host>:<port>/jenkins/blue/organizations/jenkins/pipeline-editor/

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Prashant Kajale
  • 473
  • 4
  • 8
10

In addition to Prashant Kajale's answer, you can edit a specific item with

[Url of Jenkins]/blue/organizations/jenkins/pipeline-editor/[item-name]

Edit: According to the issue tracker, saving doesn't work with none-github repositories. You have to go to [Url of Jenkins]/blue/organizations/jenkins/pipeline-editor/ and open the load/save dialog with Ctrl+S, paste you Jenkinsfile (if you have one yet), edit it, and then save it manually by using Ctrl+S and copy.

mx0
  • 6,445
  • 12
  • 49
  • 54
konstin
  • 476
  • 7
  • 16
  • 1
    Full support for editing Git-based repositories is coming soon. You can follow this issue for updates: https://issues.jenkins-ci.org/browse/JENKINS-43148 – cliff.meyers May 24 '17 at 14:33
  • @cliff.meyers Not sure if our definitions of "soon" match. The last commit in the repository has been done on 2017-03-25. – konstin May 24 '17 at 14:56
  • This doesn't work for me, is there another URL that offers this now? – r4d1um Jul 24 '17 at 13:42
  • It also doesn't work for me. I have a Jenkinsfile in a multi pipeline project called "foo", branch "master". I tried `[JenkinsURL]/blue/organizations/jenkins/pipeline-editor/foo` (I tried also `foo/master`): I get this error: `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.`. With a valid Jenkinsfile (runs successfully) @konstin can you be more specific what [item-name] should be or giving a more detailed (steps to reproduce) and working example? – firepol Jul 26 '17 at 14:42
  • @firepol: It's exactly what the error message says: You must use the declarative syntax in your Jenkinsfile, otherwise the pipeline editor can't be used. – konstin Jul 27 '17 at 16:02
  • @konstin: I am using a declarative syntax in my multi branch pipeline and it can build correctly. It's the pipeline editor that doesn't load anything... It's because I'm using a git server other than github and it's a known problem for now for the pipeline editor not to work on source code hosted elsewhere than github (e.g. we use gerrit, and you?). I was thinking that if I use the proper syntax for [item-name] I could load something... just maybe share an example if you have a branch called "foo/bar" (of just "master") – firepol Jul 28 '17 at 07:34
  • @firepol Ok, sorry then. Afaik the pipeline lacks a bunch of features for non-github projects, though I haven't thoroughly tested what works and what doesn't. You might find some helpful information in the tracking issue: https://issues.jenkins-ci.org/browse/JENKINS-43148 – konstin Jul 28 '17 at 16:07
  • 1
    I was able to edit the pipeline by going to this URL `[JenkinsURL]/blue/organizations/jenkins/pipeline-editor/[item-name]/[branch]` for v1.3.0 of Blue Ocean plugin – Neo Oct 15 '17 at 02:00
8

It is hidden and does not show up until you hover over. I suppose simply a bad UI design.

  1. Open Blue Ocean from a job.
  2. Select a branch from Branches.
  3. Hover over to the right and buttons will show up.
  4. Select "Edit" and the editor will open.

enter image description here

mon
  • 18,789
  • 22
  • 112
  • 205
1

There is an open bug where the editor links do not display when the job is moved to a folder.

https://issues.jenkins-ci.org/browse/JENKINS-46441

Even Mien
  • 44,393
  • 43
  • 115
  • 119
0

There is two possible reasons why the pipeline editor button isn't showing, either you're not logged in as a user or you're pipeline project is not into github repository.

Blue ocean doesn't support yet generating pipelines with blueocean-pipeline-editor-plugin when your SCM is bitbucket or gitlab or any other git tool.

The good news is that we will have editor support for Bitbucket and plain Git (which will include Gitlab) in our 1.3 release soon.

You can find more details about this issue here

0

In the Blue Ocean pipeline view, there's a pencil icon on the upper right that lets you edit. So if you click an entry under the Activity tab, if you click any run of the job it will take you to this (green indicates a successful run):

Blue ocean pipeline header

An example URL for a pipeline named my-pipeline would be:

http://localhost:8080/blue/organizations/jenkins/my-pipeline/detail/jenkins/1/pipeline

rotarydial
  • 2,181
  • 2
  • 23
  • 27
0

After installing Jenkins (either for Windows or Linux), you will need to install the plugin for Blue Ocean: https://www.jenkins.io/doc/book/blueocean/getting-started/

How To Use Blue Ocean and edit an existing pipeline

After installing Blue Ocean and creating a small pipeline, you should be able to see this context menu: enter image description here

Then, you will see your pipeline in a new "dashboard". Click on the row for the pipeline you need to work on: enter image description here

You will get another "dashboard" looking screen. Editing is done from the configuration button (the gear icon) on the top menu: enter image description here

This will take you to the Classic UI look, click on the Pipeline tab: enter image description here

This is a complicated UI that either is designed to dissuade you not to use it or is in a desperate need for a redesign, in my opinion.

Salvador Valencia
  • 1,330
  • 1
  • 17
  • 26