Where is the Blue Ocean pipeline editor?
Asked Answered
E

8

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?

Escent answered 12/4, 2017 at 13:38 Comment(0)
J
13

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

Joo answered 13/4, 2017 at 11:41 Comment(1)
Thanks ! It is a strange UX to have to type the full url ^^Disable
S
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.

Susann answered 26/4, 2017 at 17:3 Comment(8)
Full support for editing Git-based repositories is coming soon. You can follow this issue for updates: issues.jenkins-ci.org/browse/JENKINS-43148Roderica
@Roderica Not sure if our definitions of "soon" match. The last commit in the repository has been done on 2017-03-25.Susann
This doesn't work for me, is there another URL that offers this now?Steer
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?Undermanned
@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.Susann
@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")Undermanned
@Undermanned 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: issues.jenkins-ci.org/browse/JENKINS-43148Susann
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 pluginSchulman
R
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

Ryswick answered 22/2, 2019 at 4:25 Comment(2)
every time I come back to using jenkins I struggle to find it, really poor designNeoplatonism
Thanks. This is the simple answer I was looking for.Express
M
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

Minefield answered 3/8, 2018 at 12:1 Comment(0)
C
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

Calves answered 20/8, 2017 at 11:39 Comment(0)
E
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

Express answered 16/10, 2019 at 18:53 Comment(0)
I
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.

Intersidereal answered 10/6, 2022 at 22:12 Comment(0)
L
0

as login to github use:

  1. username (not email)
  2. pat token with: a. repo access (i selected all) b. user:email

hope that helps

Lull answered 5/2 at 14:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.