Software:Jenkins

From HandWiki
Jump to: navigation, search
Jenkins
Jenkins logo with title.svg
Ansible-playbook-output-jenkins.png
Original author(s)Kohsuke Kawaguchi[1]
Initial release2 February 2011 (2011-02-02)[2]
Stable release
2.281[3] / 6 March 2021; 3 months ago (2021-03-06)
Written inJava
PlatformJava 8, Java 11
TypeContinuous delivery
LicenseMIT License[4][5]

Jenkins is a free and open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat. It supports version control tools, including AccuRev, CVS, Subversion, Git, Mercurial, Perforce, ClearCase and RTC, and can execute Apache Ant, Apache Maven and sbt based projects as well as arbitrary shell scripts and Windows batch commands.

History

The Jenkins project was originally named Hudson, and was renamed after a dispute with Oracle, which had forked the project and claimed rights to the project name. The Oracle fork, Hudson, continued to be developed for a time before being donated to the Eclipse Foundation. Oracle's Hudson is no longer maintained[6][7] and was announced as obsolete in February 2017.[8]

Around 2007 Hudson became known as a better alternative to Cruise Control and other open-source build-servers.[1][9] At the JavaOne conference in May 2008 the software won the Duke's Choice Award in the Developer Solutions category.[10]

During November 2010, after the acquisition of Sun Microsystems by Oracle, an issue arose in the Hudson community with respect to the infrastructure used, which grew to encompass questions over the stewardship and control by Oracle.[11] Negotiations between the principal project contributors and Oracle took place, and although there were many areas of agreement a key sticking point was the trademarked name "Hudson," after Oracle claimed the right to the name and applied for a trademark in December 2010. As a result, on January 11, 2011, a call for votes was made to change the project name from "Hudson" to "Jenkins." The proposal was overwhelmingly approved by community vote on January 29, 2011, creating the Jenkins project.[12]

On February 1, 2011, Oracle said that they intended to continue development of Hudson, and considered Jenkins a fork rather than a rename. Jenkins and Hudson therefore continued as two independent projects,[13] each claiming the other is the fork. As of June 2019, the Jenkins organization on GitHub had 667 project members and around 2,200 public repositories,[14] compared with Hudson's 28 project members and 20 public repositories with the last update in 2016.[15]

In 2011, creator Kohsuke Kawaguchi received an O'Reilly Open Source Award for his work on the Hudson/Jenkins project.[16]

On April 20, 2016 version 2 was released with the Pipeline plugin enabled by default.[17] The plugin allows for writing build instructions using a domain specific language based on Apache Groovy.

Jenkins replaced Hudson since February 8, 2017 in Eclipse.[8]

In March 2018 Jenkins X software project for Kubernetes was publicly presented,[18] with support for different cloud providers including AWS EKS among others.[19]

Builds

Builds can be triggered by various means, for example:

  • a webhook that gets triggered upon pushed commits in a version control system
  • scheduling via a cron-like mechanism
  • requesting a specific build URL.
  • after the other builds in the queue have completed
  • invoked by other builds

Plugins

Plugins have been released for Jenkins that extend its use to projects written in languages other than Java. Plugins are available for integrating Jenkins with most version control systems and bug databases. Many build tools are supported via their respective plugins. Plugins can also change the way Jenkins looks or add new functionality. There are a set of plugins dedicated for the purpose of unit testing that generate test reports in various formats (for example, JUnit bundled with Jenkins, MSTest, NUnit, etc.[20]) and automated testing that supports automated tests. Builds can generate test reports in various formats supported by plugins (JUnit support is currently bundled) and Jenkins can display the reports and generate trends and render them in the GUI.

Mailer

Allows configuring email notifications for build results.[21] Jenkins will send emails to the specified recipients whenever a certain important event occurs, such as:

  1. Failed build.
  2. Unstable build.
  3. Successful build after a failed build, indicating that a crisis is over
  4. Unstable build after a successful one, indicating that there's a regression

Credentials

Allows storing credentials in Jenkins. Provides a standardized API for other plugins to store and retrieve different types of credentials.[22]

Monitoring external jobs

Adds the ability to monitor the result of externally executed jobs.[23]

SSH agents

This plugin allows managing agents (formerly known as slaves)[24] running on *nix machines over SSH.[25] It adds a new type of agent launch method. This launch method will

  1. Open a SSH connection to the specified host as the specified username,
  2. Check the default version of Java for that user,
  3. [not implemented yet] If the default version is not compatible with Jenkins's agent.jar, try to find a proper version of Java
  4. Once it has a suitable version of Java, copy the latest agent.jar via SFTP (falling back to scp if SFTP is not available),
  5. Start the agent process.

Javadoc

This plugin adds Javadoc support to Jenkins. This functionality used to be a part of the core, but as of Jenkins 1.431, it was split off into separate plugins.[26]

The plugin enables the selection of "Publish Javadoc" as a post-build action, specifying the directory where the Javadoc is to be gathered and if retention is expected for each successful build.[27]

Online explanation

Jenkins can be used to schedule and monitor the running of a shell script via user interface instead of command prompt .

Security

Jenkins' security depends on two factors: access control and protection from external threats. Access control can be customized via two ways: user authentication and authorization. Protection from external threats such as CSRF attacks and malicious builds is supported as well.[28]

Awards and recognition

  • InfoWorld Bossie Award (Best of Open Source Software Award) in 2011.[29]
  • Received Geek Choice Award in 2014.[29]

See also

References

  1. 1.0 1.1 Dan Dyer. "Why are you still not using Hudson?". http://blog.uncommons.org/2008/05/09/why-are-you-still-not-using-hudson/. 
  2. Jenkins 1.396 released, The first release of Jenkins is posted, Kohsuke Kawaguchi
  3. "Release list". https://github.com/jenkinsci/jenkins/releases. 
  4. "LICENSE.txt". GitHub. 2008-02-12. https://github.com/jenkinsci/jenkins/blob/master/LICENSE.txt. 
  5. Kawaguchi, Kohsuke. "Use Hudson: License". http://hudson.gotdns.com/wiki/display/HUDSON/Use+Hudson#UseHudson-License. 
  6. "About Jenkins". https://wiki.eclipse.org/Jenkins#About_Jenkins. 
  7. "About Jenkins". https://wiki.eclipse.org/Jenkins. 
  8. 8.0 8.1 "About Jenkins". https://wiki.eclipse.org/index.php?title=Jenkins&oldid=414064. 
  9. Jeffrey Fredrick. [user name]. "What is the difference between Hudson and CruiseControl for Java projects?". Stack Overflow. https://stackoverflow.com/questions/604385/what-is-the-difference-between-hudson-and-cruisecontrol-for-java-projects. 
  10. Duboscq, Geneviève (2008). "2008 JavaOne Conference: Duke's Choice Awards Winners for 2008". 2008 Java One Conference. java.sun.com. http://java.sun.com/javaone/sf/2008/articles/2008dukeschoiceawards.jsp. 
  11. Rodrigues, Savio (December 3, 2010). "Oracle's open source missteps continue with Hudson project". InfoWorld. https://www.infoworld.com/article/2624986/development-tools/oracle-s-open-source-missteps-continue-with-hudson-project.html. 
  12. Proffitt, Brian (February 2, 2011). "Hudson devs vote for name change; Oracle declares fork". ITWorld. https://www.itworld.com/article/2746627/open-source-tools/hudson-devs-vote-for-name-change--oracle-declares-fork.html. 
  13. Krill, Paul (May 4, 2011). "Oracle hands Hudson to Eclipse, but Jenkins fork seems permanent". InfoWorld. https://www.infoworld.com/article/2624074/application-development/oracle-hands-hudson-to-eclipse--but-jenkins-fork-seems-permanent.html. 
  14. "Jenkins organization on GitHub". https://github.com/jenkinsci. 
  15. "Hudson organization on Github". https://github.com/hudson. 
  16. Morris, Richard (July 17, 2012). "Kohsuke Kawaguchi: Geek of the Week". https://www.red-gate.com/simple-talk/opinion/geek-of-the-week/kohsuke-kawaguchi-geek-of-the-week/. 
  17. "What's New in Jenkins 2.0". August 24, 2016. https://developers.redhat.com/blog/2016/08/24/whats-new-in-jenkins-2-0-2/. 
  18. "Introducing Jenkins X: a CI/CD solution for modern cloud applications on Kubernetes". https://jenkins.io/blog/2018/03/19/introducing-jenkins-x/index.html. 
  19. "Continuous Delivery with Amazon EKS and Jenkins X". November 7, 2018. https://aws.amazon.com/blogs/opensource/continuous-delivery-eks-jenkins-x/. 
  20. "Plugins". wiki.jenkins-ci.org. https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Buildreports. 
  21. "Mailer - Jenkins - Jenkins Wiki". https://wiki.jenkins.io/display/JENKINS/Mailer. 
  22. "Credentials Plugin - Jenkins - Jenkins Wiki". https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin. 
  23. "Monitoring external jobs - Jenkins - Jenkins Wiki". https://wiki.jenkins.io/display/JENKINS/Monitoring+external+jobs. 
  24. "Jenkins source code" (in en). https://github.com/jenkinsci/jenkins/blob/a837b35ca9f11cba0f9aa57bd926f087e16c5497/core/src/main/java/hudson/model/Slave.java#L93-L95. 
  25. "SSH Build Agent - Jenkins Plugin". https://plugins.jenkins.io/ssh-slaves/. 
  26. "Javadoc Plugin - Jenkins - Jenkins Wiki". https://wiki.jenkins.io/display/JENKINS/Javadoc+Plugin. 
  27. "Generate and publish edoc in Jenkins using Javadoc plugin | Erlanger". http://truthisanoddnumber.com/?p=97. 
  28. "Securing Jenkins". https://jenkins.io/doc/book/operating/security/. 
  29. 29.0 29.1 "Awards - Jenkins - Jenkins Wiki". https://wiki.jenkins-ci.org/display/JENKINS/Awards. 

External links