📜  Jenkins vs特拉维斯CI

📅  最后修改于: 2021-01-04 03:05:30             🧑  作者: Mango

詹金斯VS特拉维斯CI

Jenkins和Travis CI用作持续集成(CI)工具,使开发人员可以在开发过程中集成代码分支,并对它们运行一系列自动化测试。它们都将耗时的手动构建,测试和部署软件任务转换为快速,自动化的过程。

在将Travis CI与Jenkins进行比较时,我们需要考虑我们的业务需求和预算。

詹金斯

Jenkins是使用Java编程语言编写的最受欢迎的开源自动化服务器。它促进了软件开发过程中持续集成和持续交付(CI / CD)的自动化过程。

Jenkins支持1400多种其他软件工具的插件。这些插件将Jenkins扩展到了五年。平台,UI,管理,源代码管理和构建管理。

Jenkins易于安装和使用。它提供了一个令人印象深刻的浏览器托管的项目管理仪表板。

评估和选择詹金斯的一些常见原因是:

  • 开源免费
  • 广泛使用并有据可查
  • 充满活力的用户社区
  • 与多种工具和技术集成。
  • 插件支持
  • 易于安装,配置和升级
  • 分布式构建
  • 监控外部工作
  • 支持各种身份验证方法,通知,版本控制系统等

特拉维斯CI

Travis CI是第一个持续集成即服务工具。它引入了一种在云中构建代码的新方法。 Travis CI工具允许用户注册,链接其存储库,构建以及测试其应用程序。

该工具可以轻松地与常见的云存储库(如Bitbucket和GitHub)集成。它提供了许多自动CI选项,由于Travis CI服务器托管在云中,因此无需专用服务器。这使我们能够在不同环境,不同机器,不同操作系统上进行测试。

对于开源项目,Travis CI是免费的。对于商业项目,我们需要购买企业计划。

评估和选择Travis CI的一些原因包括:

  • 与GitHub自动集成
  • 预先安装的构建和测试工具
  • 存储库访问以构建请求请求
  • 提供服务,例如数据库,消息队列等。
  • 部署到多个云服务
  • 加密安全环境变量或文件
  • CLI客户端和用于脚本编写的API
  • 支持总共21种语言,例如C,C#,C++,Android,Java,JavaScript(带有Node.js),PHP,Perl, Python,R,Ruby等。
  • 该工具与HipChat,Slack,Email等集成。
  • 它可以识别大小写更改。
  • 构建工件并检查代码质量
  • 这样,可以同时在Linux和Mac OS X上运行测试

詹金斯诉。 Travis CI比较表

以下是詹金斯和Travis CI之间的主要比较:

Jenkins Travis CI
Jenkins is a software tool that allows CI (Continuous Integration). Travis CI is distributed CI service to test and build the project at GitHub.
It is mainly written in Java. It is mainly written in Ruby.
It is developed by Sun Microsystems and originally called Hudson Travis CI is developed by Travis CI community.
Jenkins has full system control. It has very less system control.
Jenkins supports multiple version control systems like GIT and SVN. Travis CI supports only GitHub version control.
It supports all platforms like Windows, Mac, Linux, etc. It does not support Windows. It only supports Linux and Mac.
Many plugins are available for Jenkins. Supports less plugins and use in Travis CI.
Website of Jenkins is Jenkins.io The website of Travis CI is Travis.ci.org
Jenkins is free. But the development team need to run and maintain their dedicated server. This could be considered an extra expense. Travis CI enterprise suites start at $129/month. Cost increase based on the level of required support.
It is an open-source free to use the tool. It is commercial CI tool.
It is easy to use. It is flexible to use.
It is good for GitHub. It is excellent for GitHub.
It is a server-based tool. It is a cloud-based tool.
It provides more customizations options. It provides less customizations options.
Jenkins is highly scalable. Travis CI is less scalable as compared to Jenkins.
Jenkins can be hosted internally. Travis CI cannot be hosted internally.
Jenkins has a lot of resources, great community support, tutorials. Travis CI has only community support and tutorials, fewer resources.
Jenkins is mainly used by the top companies. Travis CI is used by good companies but yet to reach to great companies.
Jenkins is easy to install and make the service up and running with one command line. Travis CI is easier to configure with .travis.yaml file.

因此,通过上面的讨论,我们可以看到Travis CI和Jenkins都提供了出色的功能。但是,小型开源项目最适合Travis CI,因为它易于运行且设置迅速。另一方面,大型企业最适合詹金斯,因为它为私人项目提供免费许可,并提供广泛的可定制功能。因此,可以说这两种CI工具在其方式上都很不错。