Blue Ocean: a new user experience for Jenkins
jenkins.io
jenkins.io
My biggest issue with Jenkins so far has been configuring complex jobs. The single configuration page just gets unwiedly fast, and important settings are often hidden by default.
Is there any work being done to make this easier as well?
There's a trend to move job configuration to a Jenkinsfile that's stored in a Git repository using Jenkins Pipeline. What used to be several jobs is now one Pipeline job config defined using this DSL https://jenkins.io/solutions/pipeline/
Today the pipeline visualization only works with this way of making jobs.
Now we realize this isn't for everyone and we are thinking about how to let users create Jenkins Pipelines through the UI without having to know the DSL (just like freestyle). We are also looking at making Pipeline easier for beginners too.
While Pipeline looks awesome for sophisticated entities that have complex workflow it seems overly powerful for most I think that just have a lot of projects and configuration drift.
Pipeline unlike Travis Yaml is also not a declarative language. One of the advantages of using a declarative markup language that respects comments and spaces (cough XML) would be for the Web UI editor to intelligently edit the configuration files while respecting order, formatting and comments (right now I believe Jenkins XStreams so its just naive serialization).
Something like "node { sh './build.sh' }" will work fine.
But you can also build your own simplified syntax on top of Pipeline, e.g. I believe there is a prototype out there that will run Travis .yml scripts in a Pipeline job, and there are already plugins that simplify the Pipeline syntax, e.g. https://wiki.jenkins-ci.org/display/JENKINS/Simple+Build+For...
However, it turns out that tree-structured documents struggle to describe build graphs.
I haven't tested it with the newer Jenkins 2.x versions, but you may want to try it to see if it helps.
https://www.opsfordevelopers.com/2015/03/jenkins-show-advanc...
try that to build missing artifacts. It worked for me.
I also added the main contributors of the repository to the Open Source Design collective at https://github.com/opensourcedesign, more info at http://opensourcedesign.net – welcome! :)
Please instead establish any kind of directory that is expected where all that project and tooling related meta files are kept, I would like to suggest a top level folder called "config" - but I really do not care, how this is called, as long as that top level config file annoyance will disappear forever.
I believe it might be acceptable to expect exactly one optional top level config file that might be called "configrc" that would contain only the path of that actual config path if this is not in a default place.
Thank you very much for your attention!
If you needed any additional configuration for Jenkins specific instructions then that would be in a folder called ".jenkins"
Sadly, people did not embrace that project type... perhaps because it was given the nerdy name "literate" by a colleague of mine (who's name rhymes with Nichale Meale)
I wished for a better Jenkins UI for so long I had given up hope. GitLab CI looked enticing, but after putting so much work into building a workflow that doesn't pollute my repos with environment specific data i'm right back at Jenkins.
Thanks for this, this will make it so much clearer to our POs where we stand without spending forever trying to push that info into Jira.
This[1] is for us a showstopper atm, so we are sticking to go.cd, although Jenkins seems to be improving a lot lately.
If you don't have a docker heavy type of dev workflow, I think it is a great alternative. Totally worth checking it out.
GitLab Runner (the 'slave' that runs your code), is just a Go binary, so it runs on anything you can run a Go binary on, which is pretty close to all major platforms.
Read more on Runner here: http://docs.gitlab.com/ce/ci/runners/README.html
And congrats to the Jenkins team! This looks amazing. A majority of our customers uses Jenkins. I'm sure they'll be excited to update.
After a little while you'll realise you want something a bit different, at which point the docker-image resource that's supported by the Concourse team makes it embarrassingly easy. You just tell Concourse "yo, push to this image" and it does the rest.
* I don't like to couple the builds to a product
* Can I run the build locally? if something goes, how to I know if it's a bug in the pipeline script, the build server environment, or my code. I want reproducible builds.
Building locally is a good one and thats something I am thinking about in the long term.
Doing it this way reduces the tie to the "product" and also means that you can easily test the individual self-contained steps outside of the product.
When the CI system has high-level primitives for showing and organising build graphs, it makes sense to surface those instead of burying them inside a relatively opaque build tool.
It's easier to disambiguate shapes than colors.
http://www.informationisbeautiful.net/visualizations/colours...
- green/blue: safe/go
- (optional) yellow: caution
- red: danger/stop
I don't know of any country where this convention is not in use.
There's more about why and when we use them in my other comments.
- India: http://3.imimg.com/data3/II/GU/MY-762554/danger-signs-boards...
- Asia: http://cache4.asset-cache.net/gc/152921698-warning-these-sig...
- Africa: http://www.lifeloveandsugar.com/wp-content/uploads/2015/06/d...
- Middle East: http://cache3.asset-cache.net/gc/474346969-an-israeli-sign-i...
* Rosary Pea
* Coral Snake
* Stag Beetle
* Jerusalem Cherry
* Phantasmal poison frog
* Strawberry poison dart frog
* Bittersweet nightshade berries
Instead one theory is that the mimicry is in reverse: the coral snake is mimicking the non-fatally venomous "false coral snake" which is also more numerous.
There are a variety of different theories on mimicry, and the science of the coral snake is still debated...
Except for the colourblind, who need additional ways for that information to be conveyed.
I like red/green schemes too, but there always needs to be other cues.
The simplest approach is to add a symbol for failures, to distinguish them from successes. Other colours can be chosen for other statuses that the colour-blind can distinguish without additional symbols.
And Blue Ocean accommodates both. I think this would be a good blog post :)
I wanted the status balls to be the primary focus. The weather icons should only be looked at when all the builds are blue. If they are too attention grabbing then you don't go fixing the red (didn't built) and yellow (tests failing) builds first
Not sure if I'm in the minority here or not though but it actually bothers me if, say, I misconfigured something, build breaks, I fix it but now it's showing it's cloudy. It also took me way too long to realize that cloudy meant it built but failed in the past. I remember my first experience with Jenkins trying to figure out why the build was failing before realizing it wasn't failing and cloudy somehow meant it's good.
Also, and I apologize if this is no longer how the Jenkins weather indicators work, but the last time I used Jenkins, the weather indicators were based on the number of failed builds, not the time the build wasn't green. For me, the number of failed builds is far less interesting than the amount of time that the build was failing. If a developer scrambles with three checkins in 15 minutes that attempt to fix the build and the third one succeeds, that's a better situation than a developer who takes a more measured approach that fixes the build four hours later on the first checkin. The first developer might have created a slightly messier commit history, but the second developer blocked the entire team for half a day. Taking the view that historical build information is really time series data would, to me, be much more insightful.
Way back in the way back, a colleague and I were looking to get some extra information onto the Jenkins (then Hudson) jobs screen. I had some chats with KK over IRC and at the time he did not want to open up having multiple columns in the jobs screen. His then view of the world is that the jobs screen should be somewhat opinionated and clean.
So I said, well what about if we add just a second icon beside the status ball and if you hover over it you get a tooltip that displays some detail message. KK said that didn't seem so bad... so off hacking I went.
What I wanted was a kind of health column that would tell you the worst health of your job at a glance.
The idea we had was that some jobs may have low test coverage, some jobs may have a flaky build, some jobs may have lots of TODO comments in the code, etc. So you would define the criterial levels of each metric and score jobs against those levels.
Then we would pick the worst score and display an icon for that score.
So off looking for icons I went... keeping in with the Tango theme that was used by the project at the time...
My initial idea was that you would maybe have a heart that gets into worse and worse shape as the score went from 100% to 0%... but the red colour was too distracting...
So I soon realized that - unlike the status balls - we wanted something that was not quite as high a contrast. You want to see the status balls first... if something is yellow or red, you fix that first... only when everything is blue do you want to start looking at the health (which is why the column is called "H")
What I did find is that the weather icons gave me 5 levels of "health" and were subtle enough not to distract from the red and yellow balls... plus my colleague and I thought it would be really cool to have the code coverage metric be an umbrella and as the code coverage gets worse the umbrella would loose bits of fabric so that 0% coverage would be a tattered frame.
So I had my patch and submitted it to KK and it got merged and the rest is history.
For the initial patch I wanted there to be something for every job already, so the default job health is based on the last 5 builds (because there are only 5 levels of the default icons, and scanning any more would just be pointless)
We also added contributors for the code coverage plugins and the violations plugin (which my colleague was the initial author of)
Then of course you get distracted in other things...
What disappoints me greatly is that in the 700 or so releases of Jenkins that have had the weather icons... nobody has actually gone and implemented the custom icons for job health feature that is embedded directly in the code and was available from the very first day the patch landed...
I don't know if this is because the weather icons are just enough... or if it is because nobody noticed that you can do that...
I know for the code coverage icon, neither Peter nor I are good enough artists to come up with 5 levels of umbrella in various states of disrepair... another idea was a pie chart or a small trend graph... but we always seemed to have more important things to do... and since I joined CloudBees I've been too busy to get back to that area.
So anyway, I guess my point is that the weather icons were designed to be more subtle than the build status and the API was designed to allow plugins to contribute their own health and even their own icons... but whatever about other plugins contributing to health reports... nobody has bothered to contribute the customized icons!
-Stephen (the originator of the weather icons in Jenkins)
In less disciplined environments (most likely the majority of dev environments) they help nudge people by showing that the track record is less stellar than the green icon shows.
Please keep them :)
In Jenkins 1.x and 2.x they are visible on the top level dashboard alongside the green/blue orbs and I often wonder if that's a source of distraction because I (as a user) am looking at both of these indicators now and wondering how to interpret the state based on both of them, when maybe I shouldn't.
Would it help if the top level dashboard(s) contained only one general build status indicator (vs two), and then the trend/health indicators were "down" on the pipeline details page alongside other health/metrics info (static analysis info)?
If you want to show the state of the last 5 builds, then... show the state of the last 5 builds. e.g. ynyyY (imagine unicode ticks and crosses instead)
Just my tuppence. For the record, Jenkins is amazing in how it has sparked a revolution in the CI world, and I love it, but the weather icons do wind me up somewhat.
Edit: replaced unicode ticks and crosses with y and n because they weren't showing up.
http://www.businessinsider.com/pie-charts-are-the-worst-2013...
For what you're suggesting a horizontal thermometer shape might work, as that would make the historical order more obvious
(Y)nnyyn
* the code coverage of the most recent build,
* the findbugs / violations count of the most recent build
* any other health metric that plugins decide to contribute to the build.
The icon is supposed to be the icon of whichever report is the worst health and FTR each plugin has always had the option to define their own icons (see my other reply for a more detailed background)
I personally think that if users have to think too hard about what an icon (or status indicator) means, then something's not right with it and you need some other visualization for conveying whatever message it is you're trying to be convey.
For me, the weather icons have never passed that test because, at this stage, I've heard multiple people on different occasions say that they find them confusing. That, to me, tells me that they don't work and a different visualization is needed.
Happy to hear you love Jenkins too :)
Do you guys mind not doing that please?
GoCD was an important step forward conceptually. It's just an actually awful piece of software to try and use.
But I did some digging after your comment and there it is
http://www.indix.com/blog/life-at-indix/employee-spotlight-k...
What did you do before Indix?
I was working at ThoughtWorks as a software engineer.Also, it's now completely open source. I'm not even trying to advocate an enterprise product.
The first one just delivers the packages, but the deployment is triggered by human.
Jenkins on the other hand just feels dated. The new ui is very welcome.
Looks like we're going to keep the dual approach for a while until things crystallize further.
[0] https://www.cloudbees.com/sites/default/files/cje_study_guid...
[1] https://news.ycombinator.com/item?id=11362058 & https://news.ycombinator.com/item?id=11574487
I've never used Jenkins for my own projects but I've used it before when Minecraft's 'bukkit' framework used to use it and it's a horrible piece of web software to navigate.
Sincerely,
A Concourse Fan.
Edit: oh right you work for Pivitol ;)
On the Labs side lots of our clients are still committed to Jenkins, so improvements like these are very welcome.
https://news.ycombinator.com/item?id=11362058
>Jenkins 2.0 Beta
Almost every top level comment is very negative.
I just think the discussion now vs the discussion then is worth noting. People seem much more positive about jenkins just in the last few weeks.
Recently since it was integrated into Azure those negative comments have started to get downvoted, in favor of positive ones.
https://news.ycombinator.com/item?id=11737374
Very interesting. I figure this is just the more "corporate culture" here on HN.