• jenkins构建成功为何显示蓝色


    Jenkins creator explains why a successful build job is blue

    By

    Published: 20 Feb 2019

    Related Videos

    • img

      How to create CI builds with the Jenkins freestyle project

    • img

      Install the Jenkins Artifactory plugin in 5 easy steps

    • img

      How to integrate Nexus with Jenkins for simpler builds

    • img

      How to use the Jenkins Git Plugin: Tips and tricks

    • View All Videos

    jenkins-blue-5

    Play

    Mute

    Current Time 0:33

    /

    Duration 1:14

    Loaded: 100.00%

    Picture-in-PictureFullscreen

    Have you ever wondered why a blue sphere signifies a successful Jenkins build job, rather than the more traditional green? A developer can install the Jenkins Green Balls plugin to rectify this issue and conform to the standard red, yellow and green pattern for breakage, failure and success.

    However, the question still remains: Why does blue represent a successful Jenkins build job instead of green? In a recent interview with Jenkins creator Kohsuke Kawaguchi, TheServerSide asked that very question. Apparently, the answer stems from an interesting cultural nuance in Kawaguchi's native Japan.

    Blue spheres vs. green balls

    "In Japan, green and blue are not all that distinguished," Kawaguchi said. "We often use the single word blue to cover quite a range of green as well." Kawaguchi said that, in Japan, a traffic light is said to have a blue light. "It's not that the actual color of the lights are different when you go there."

    So, when Kawaguchi originally chose images for the Jenkins UI, he naturally looked for a blue icon, not green. "When I wrote the first Jenkins program that had the icon, for me, it was very natural to draw it using blue."

    Jenkins blue balls

    Successful Jenkins builds are marked with a blue ball.

    Jenkins Green Balls plugin

    Of course, Jenkins users aren't permanently bound by the blue sphere. Jenkins' plugin-based architecture makes it incredibly easy to customize the tool. For example, there is a Green Balls plugin that can be accessed from its update site that will show a successful Jenkins build job as a green sphere instead of a blue one.

    One thing to keep in mind with the Jenkins Green Balls plugin is whether or not any users are colorblind and can't distinguish between green and yellow. Blue could be a more discernible option for these users if they are colorblind.

    If you choose not to install the Green Balls plugin, you can pass along this unique factoid to new users whenever they bring up this question about why successful Jenkins build jobs look the way do.

    其中的视频截图这样说的,在日本,蓝色和绿色不怎么区分,蓝色基本上就代表了绿色。本文上面也说了,对于红绿色盲来说,蓝色更容易区分,看来蓝色还是可以考虑的。

  • 相关阅读:
    简介anaconda下的jupyter notebook的代码分块运行
    此文件的签名已损坏或无效或360下载提示下载失败解决办法
    Java基础加强
    XML
    Servlet
    Tomcat
    json和跨域
    jQuery的ajax
    ajax请求状态码 以及 页面请求状态码
    ajax 基础
  • 原文地址:https://www.cnblogs.com/liq07lzucn/p/14903872.html
Copyright © 2020-2023  润新知