Jenkins Blue Ocean - no other GUI support for anything besides the stages section?

Perhaps I'm missing something here, but I'm using the Blue Ocean plugin for Jenkins (it's v1'd now!). Love it, for the most part. But it seems like the only part of the pipeline that is supported through the pipeline GUI is the stages section.

Has anybody else seen or experienced anything otherwise? For instance, I had to modify my Jenkinsfile directly to work with the post section.

Not a show-stopper, but if it is me that is doing something wrong, I'd be interested in that.

Thanks in advance!

Posted Apr 10, 2017, 8:13 PM UTC

219
cosha1•

What do you mean to work with the post section? Blue Ocean is just a more intuitive and modern view of jobs. It'll only get better (for example the editor). You should be editing your Jenkinsfile directly anyway as that gives you versioning.

3
todayismyday2•

You should be editing your Jenkinsfile directly anyway as that gives you versioning.

Not necessarily. If you want Jenkinsfile to be edited only by admins, it makes sense to have it in some other repo or in Jenkins itself. When you have the Jenkinsfile in Jenkins itself, you don't necessarily need to use in-process script approval, which brings some benefits over Jenkinsfile in scm.

2
housemouse139•

I understand every company is different but I don't see why you wouldn't allow the guys writing the code to have access to the build pipeline that defines how to build and test that code. Every ci tool is using that model for a reason.

1
todayismyday2•

It's all about having admin rights on Jenkins. Having Jenkinsfile in Jenkins gives it admin rights whereas having it in source control requires all more sophisticated functions/methods go through in-process script approval. Really, having Jenkinsfile in source control will work best in majority of cases, but definitely not all, especially if you are serious about Jenkins security and your Jenkins has a lot of access/rights.

1
housemouse139•

I hear you. My current company uses jenkins for everything but ci and it has a lot of access. We'll probably end up using gitlab ci when we're ready to start doing ci. And hopefully phase out jenkins for something we build in house.

1
thomas_stringerOP•

My Jenkinsfile is versioned. Jenkins uses it to build, and it's in the root of my repo.

The blue ocean pipeline UI is capable of generating and manipulating the stages section of a Jenkinsfile. It appears as though it is unable to create or illustrate the post section of the pipeline though.

1
Chico75013•

What's the post section of a pipeline? I thought this concept was gone with pipelines

0
thomas_stringerOP•

Nope, it's there in the declarative pipeline. Here is my current Jenkinsfile which has an example.

1
Chico75013•

TIL Jenkins released a declarative pipeline syntax 4 months back https://jenkins.io/blog/2016/12/19/declarative-pipeline-beta/

2