Travis CI vs Jenkins: Which CI/CD Tool Is Right For You?
Tags: cicd, jenkins, devops, travis
Published: 2020-07-29 09:07:34

Travis CI and Jenkins are both popular CI/CD tools and were launched in the same year i.e. 2011. As of July 2020, Jenkins has been the more obvious choice as CI/CD tool with 15.9k stars & 6.3k forks, in comparison to TravisCI which has 8k stars & 756 forks. However, these numbers alone don’t imply which CI/CD tool is more suitable for your upcoming or existing project. Jenkins is an open-source & Travis CI is free for open source projects.

As a DevOps professional, you need to evaluate these tools based on your budget, project requirements, and other data points. This is why we take a deep dive into Travis CI vs Jenkins comparison to help you decide the right CI/CD tool for your project requirements.

If you are new to DevOps and are just learning the basics then we recommend you read our detailed article on “[What Is Continuous Integration And Continuous Delivery?](https://www.lambdatest.com/blog/what-is-continuous-integration-and-continuous-delivery/?utm_source=dev&utm_medium=Blog&utm_campaign=Himanshu-29072020&utm_term=Himanshu)”. Without further ado, let’s get started.

 
## What is Jenkins?

Jenkins is a popular open-source CI/CD tool that is in usage for a long time. The tool is written entirely in Java. Jenkins has a powerful set of features that can be used to build, test, and integrate changes in a project.

![travis vs. Jenkins](https://cdn.lambdatest.com/blog/wp-content/uploads/2020/07/TeamCity-vs.-Jenkins-1.jpg)

It is the go-to choice for startups as it is free to use, supports a wide range of plugins, and is backed by a vibrant community. Developers get the chance to set up a CI/CD environment in Jenkins. Jenkins is available for a wide range of platforms – Windows, macOS, and various flavors of Unix (i.e. Ubuntu, OpenSUSE, and more).

Another major of Jenkins is its extensibility with plugins. Like other open-source projects, Jenkins maintains two release lines – weekly and LTS (Long Term Support). At the time of this article, the latest version of Jenkins (LTS) was 2.235.1.

#### **Salient features of Jenkins**

- Open source and free for use.
- Extensive plugin ecosystem.
- Vibrant community.
- Supports parallel execution.
- Ease to set up.
- Offers REST API.
- Can be configured using Jenkinsfile

## What is Travis CI?

Amongst all the CI/CD tools, Travis CI is undoubtedly one of the most popular choices. Initially, it was created for open source projects but with time, the tool has also migrated to close source projects. Like Jenkins, Travis CI is also one of the early players in the CI/CD tools market.

The tool is written in Ruby and is developed & maintained by the Travis CI community. Travis CI was earlier available only for GitHub hosted projects but now it also supports Bitbucket hosted projects.

![travis vs jenkins](https://cdn.lambdatest.com/blog/wp-content/uploads/2020/07/image1-11.png)

It is available for Linux, macOS, and Windows (early stage) operating systems. Travis CI is free of charge for every open-source project. For using Travis CI, you should have an account on [GitHub](https://github.com/) or [Bitbucket](https://bitbucket.org/). There is no installation required and you can get started by simply signing up and adding a project.

#### **Salient features of Travis CI**

- Free for testing open-source applications.
- Available for Continuous Delivery (CD) and Continuous Integration (CI).
- Available for macOS, Linux, Windows (early stages).
- Supports around 30 different programming languages like Ruby, Perl, Python, Scala, etc.
- Can be configured after adding .travis.yml file (i.e. YAML format text file).
- Supports integration with external tools.
- Supports build matrix feature to accelerate the project execution.

Let’s start with a detailed Travis CI vs Jenkins face-off by evaluating it from perspectives of usability, support, and more.

## Travis CI vs Jenkins – Detailed Showdown

Here are some of the features used for Travis CI vs Jenkins comparison:

### Setup and Installation

Jenkins is a self-contained Java program that runs seamlessly out of the box. In total, [three major steps](https://www.jenkins.io/doc/book/installing/) are involved if Java and Tomcat server is pre-installed. Jenkins is available for Windows, Unix, and macOS platforms.

[Jenkins can be combined with Docker](https://www.jenkins.io/solutions/docker/) to bring more speed and consistency to the automation tasks. Jenkins can run as a servlet in Java containers like GlassFish and Apache Tomcat.

Using the Travis CI tool with a cloud-hosted code repository does not require any installation. However, the following prerequisites have to be met:

- An account on GitHub or Bitbucket
- Owner permissions for the project hosted on the preferred platform (i.e. GitHub or Bitbucket)

For getting started with Travis CI with GitHub, the developer needs to sign up with GitHub on Travis. Enable the repository for testing from Travis Settings Page and add .travis.yml (YAML text file) to the root directory. Further details about the installation of Travis CI using GitHub and Bitbucket are available [here](https://docs.travis-ci.com/user/tutorial/).

The setup and installation process of Jenkins is simple, as few steps are required in the installation. Travis CI is one of the preferred tools if you are using GitHub or Bitbucket, as it integrates with the respective platforms. It automatically runs the test suites when any change is pushed to the repository.

### Ease of Use

The focus for Jenkins has always been on functionality rather than usability. It does not mean that it is not user friendly, as the documentation is exhaustive enough to get started with Jenkins. The upgrade process of Jenkins is also simple and straight-forward. All the configurations are stored in a simple XML file that the admin can directly edit from the file system. Hence, changes can be spread quickly across multiple Jenkins projects, instead of doing the same from the UI.

Due to tight integration with GitHub, Travis CI is preferred CI/CD tool for many open source projects. Travis CI allows you to independently test pull requests & branches. For easy monitoring, the test results are displayed on the GitHub UI.

The documentation is exhaustive which makes onboarding very easy. Owing to the simple user interface, Travis CI is more friendly to use when compared to Jenkins. However, the opinion might differ for a developer (or admin) who is well-versed with Jenkins.

### Parallel Execution

Travis CI supports parallel testing. It can also be integrated with tools like Slack, HipChat, Email, etc. and get notifications if the build is unsuccessful. Developers can speed up their test suites by executing multiple builds in parallel, across different virtual machines. The ‘build matrix’ feature offered by Travis CI allows developers to break down a build into assorted parts and thus speed up the suites.

For parallel testing, you need to make changes in the `.travis.yml` file for fully utilizing the available capacity of your account. You can execute parallel builds on a single VM(Virtual Machine) or on multiple VMs for RSpec, Cucumber, or Minitest.

Build stages in Travis CI can also be used for achieving parallel execution. Build stages are used to group jobs and run the relevant jobs (in a stage) in parallel. However, the stages are run in a sequential manner. The Parallel Test Executor Plugin is used for parallel execution using Jenkins. As the same environment is shared by different builds, you may face issues with parallel builds in Jenkins, especially when accessing shared resources like filesystem.

Parallel builds are an integral part of CI/CD tools and there is no clear winner in the Travis CI vs Jenkins face-off.

### Apps and Plugin Ecosystem

Travis CI has support for 21 programming languages such as C, C++, Java, Perl, PHP, Python, R, JavaScript (with Node.js), and more. Depending on your preference of language, you can download community-developed apps for Travis CI.

The apps & tools ecosystem comprises tools for mobile applications, plugins, command-line tools, libraries, and more. You can find more information about the apps, clients, and tools for Travis CI [here](https://docs.travis-ci.com/user/apps/).

As Jenkins is an open-source project with an overflowing plugin ecosystem, it thrives on community development. Presently, there are 1500+ plugins offered by Jenkins. Each of them supports to build, deployment, automation, and has a huge community contribution as well. Jenkins is extensible due to the availability of a wide range of plugins.

As far as apps and plugins ecosystem is concerned, Jenkins is a clear winner, as it has the backup of the community. Not to forget that Jenkins has 628 contributors as of July 2020 while Travis CI has 102.

### Third-party (and cloud) Integrations

Travis CI is a cloud-based CI server where you can add repositories hosted on other servers (apart from GitHub and BitBucket) as sub-modules. Travis CI can be used for free if the source code is public.

Travis CI has built-in plugins for popular cloud providers such as AWS, Azure, Google Cloud, etc. When it comes to integrating new GitHub projects with old ones, these plugins come in handy. They are also useful in running builds on various GitHub events and configuring build parameters. Further information about AWS and Azure with Travis CI is below:

- [How to deploy AWS CodeDeploy from Travis CI](https://blog.travis-ci.com/2014-11-12-deploy-from-travis-ci-to-aws-codedeploy)
- [How Travis CI can automatically deploy Azure Web App](https://docs.travis-ci.com/user/deployment/azure-web-apps/) 

Like Travis CI, Jenkins also supports integration with popular cloud platforms. The integration can be done using plugins. You can integrate Jenkins on the following cloud platforms:

- Google Cloud
- Amazon EC2
- Digital Ocean
- Microsoft Azure

### Features and Capabilities

The out-of-the-box integration with GitHub is one of the major advantages of Travis CI, considering that it is extensively used for open-source projects. On the other hand, it gets a bit more complicated when you try to integrate Travis CI with any control platform apart from GitHub. The tool features modern UI and a good experience whether it is used with the browser (or command-line client).

Though Jenkins and Travis CI have support for open-source and proprietary repositories, the offerings differ a bit for proprietary repositories. An upgrade to Travis CI Enterprise (or paid version) is required if you intend to build and test your private repositories available on GitHub. Travis CI has a user-friendly GUI which makes it very easy to use. Travis CI uses a clean room approach for builds, instead of using the build-agent approach. Hence, every build is run in a new and clean consistent environment.

Jenkins is easy to use and can be customized using plugins. Community is the backbone of Jenkins and you should choose Jenkins if you want to use a CI/CD tool that thrives on community support. There is a learning curve involved in setting up and customizing Jenkins.

Jenkins Pipeline is a set of plugins tasked with providing support for continuous implementation and integration to various delivery pipelines into Jenkins. It is used for realizing continuous delivery with Jenkins and comes packed with an automation server that can be extended or used to create delivery pipelines as ‘code’ with the help of pipeline Domain-Specific Language (DSL). More information about Jenkins pipelines is available [here](https://www.jenkins.io/doc/pipeline/tour/hello-world/) and [here](https://www.jenkins.io/doc/book/pipeline/).

### Community Support

Being open-source in nature, Jenkins has excellent support from the online community. [Jenkins community](https://www.jenkins.io/participate/) can be used for troubleshooting, knowledge sharing, reviews, documentation, and more. The Jenkins Community Blog is also updated on a regular basis.

The [Travis CI community](https://travis-ci.community/) has a mix of sections – deployment, enterprise, discussion & feedback, languages, environments, and more. However, the vibrancy of an online community lacks in the case of Travis CI. Plugins (or apps) and community support are not the strong points for Travis CI.

If you are looking for CI/CD tools specifically for open-source projects, you should give both the tools a try and choose the one that suits your requirements.

### Extended Customization 

RESTful APIs are offered by Travis as well as Jenkins CI for custom-made extensibility. The latest release of Travis CI APIs is API V3 which was released way back in 2017. The API version V2 is not deprecated, as it seems to be in use for Travis CI’s web front-end applications. The [Ruby Library for Travis CI](https://github.com/travis-ci/travis#ruby-library) is also based on API V2.

In Jenkins, the remote access APIs are available for XML, Python, and JSON. These APIs can be used for triggering builds, creating jobs, and more. The [documentation on Jenkins APIs](https://www.jenkins.io/doc/book/using/remote-access-api/) can be of extensive help when using APIs with your project.

### Hosting (On-Premise or Cloud)

The free and open-source version of Travis CI is based entirely on the cloud, but the enterprise can also be hosted on-premise. Hence, you can run CI builds using the Enterprise version on-premises with in-house servers or your private cloud. The cloud or on-premises environment supported are AWS, Google Compute Engine, VMware, OpenStack, and Azure. The Travis CI Enterprise also gives your team visibility and control over their build processes.

When it comes to hosting in the cloud or on-premise, Jenkins is available in both the variants. The only charge associated with using Jenkins (in on-premise mode) is the investment in setting up the on-premise infrastructure, as the tool is free to use. Architecting for scale using Jenkins can be of help when using Jenkins for DevOps testing in the on-premise environment.

If you are looking for a free (and open-source) CI/CD tool for either cloud or on-premise environment, go for Jenkins. Usability wise, Travis CI is also good for open-source repositories. Switching to Travis CI Enterprise is purely based on your budget and project requirements.

### Release Cycle

Jenkins follows the approach of LTS (Long-Term Support) and Weekly releases. While writing this article, the latest available version of Jenkins released on June 17, 2020, was Jenkins 2.235.1. Changelogs for LTS and weekly releases of Jenkins are available [here](https://www.jenkins.io/changelog-stable/) & [here](https://www.jenkins.io/changelog/).

For using Travis CI, you only have to [install dependencies](https://docs.travis-ci.com/user/installing-dependencies). There is no release perse as far as Travis CI is concerned. In order to do that, all you will need to do is adding a simple YAML file (.travis.yml) to the root directory of the repository.

### Open Source vs Commercial

Apart from features, pricing is another major factor that you have to consider when choosing the ideal CI/CD tool for DevOps testing. While Jenkins is completely free to use, only Travis CI for open-source projects is free.

Travis CI Enterprise has Monthly and Annual plans. The pricing is divided into four different categories:

- Bootstrap
- Startup
- Small Business
- Premium (for large teams)

Further details about the pricing of Travis CI is available [here](https://travis-ci.com/plans). Jenkins is widely preferred by early-stage (as well as growth-stage) startups as only infrastructure cost is involved for using Jenkins.

## Travis CI vs Jenkins Comparison Snapshot

Here is the snapshot of Travis CI vs Jenkins comparison:

![Capture0.PNG](https://ucarecdn.com/d5dff713-5d56-4204-9d8c-6a48fba36f56/)
![Capture9.PNG](https://ucarecdn.com/e8b0a0d0-1f6f-4ce3-ba51-73927d5df08c/)

## Travis CI vs Jenkins: Which CI/CD Tool Should You Choose?

One thing that is clear from the Travis CI vs Jenkins comparison is that both the products have very good features. Travis CI has an upper edge over Jenkins if you are using GitHub for version control due to its tight integration with GitHub. On the other hand, Jenkins is in development and use for many years and is also used by startups (and large enterprises). Apart from the features, you should also look at the pricing and in-house competency when short-listing the CI/CD tool, the same also applies in the case of Travis CI vs Jenkins.

Fun Fact: You can integrate both Jenkins & Travis CI pipelines with LambdaTest [cloud Selenium Grid](https://www.lambdatest.com/selenium-automation?utm_source=dev&utm_medium=Blog&utm_campaign=Himashu-29072020&utm_term=Himanshu) of 2000+ real browsers for desktop and mobile to ensure faster & robust release cycles. Check out all LambdaTest CI/CD Integrations.

Travis CI vs Jenkins has been a debated discussion among DevOps professionals across multiple online forums.

![travis vs jenkins cicd tools](https://cdn.lambdatest.com/blog/wp-content/uploads/2020/07/travis-vs-jenkins-cicd-tools.png)

I hope I was able to help you come to a conclusion between [Travis CI vs Jenkins](https://www.lambdatest.com/blog/travis-ci-vs-jenkins/?utm_source=dev&utm_medium=Blog&utm_campaign=Himanshu-29072020&utm_term=Himanshu). In case you still have any questions, feel free to share them with me in the comments. Happy testing! 🙂