Triggering Jenkins Build When Deploying Applications with Capistrano

Triggering Jenkins Build When Deploying Applications with Capistrano

Triggering Jenkins build when deploying applications with Capistrano. When we deploy applications, we tend to deploy tags rather than normal branches like develop or master. Tags represent either hotfixes or releases. In this example, when we deploy applications with Capistrano, the process will run the last build in Jenkins history.

When we deploy applications, we tend to deploy tags rather than normal branches like develop or master. Tags represent either hotfixes or releases. When hotfix and release branches are finished, they get merged into master and develop branches at same time. If you have your GitHub repository configured to run jobs in jenkins after merging branches, your build history will contain previously run builds. In this example, when we deploy applications with capistrano, the process will run the last build in jenkins history. This is how our example works.

Create jenkins user

Create a new user called deployer in jenkins. You should dedicate it to deployment process.

  1. Go to http://jenkins.dev and login as "admin".

  2. Click "Manage Jenkins" menu option on the left.

  3. Click "Manage Users" menu option at the bottom.

  4. Click "Create User" menu option on the left.

  5. Fill in the fields for deployer user. E.g. deployer:deployer

  6. Save.

capistrano jenkins

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Jenkins Is Getting Old — It’s Time to Move On

After using Jenkins on several projects, we say it's time to move on. Jenkins is left behind with his old approach — found out more!

Jenkins — How Can We Get Started Jobs in Jenkins (Part 3)

In the previous article, we learned how to create Users + Manage + Assign Roles in Jenkins. In this article, I will be highlighting how can we create some basic JOBS in Jenkins. Furthermore, these are the points which I am going to explain.

Jenkins Overview, Definition of Jenkins Master & Slave

What is Jenkins - Jenkins Overview, Definition of Jenkins Master & Slave. How did Software Delivery change after this? Traditional Process of Software Delivery. What is Jenkins Master & Slave?

Dive into Jenkins Roles

Concept of Roles in Jenkins. A role in Jenkins basically refers to a user that can has access to Jenkins. A user can be an administrator or any non-admin privileged entity.

Ansible vs. Jenkins: Difference Between Ansible and Jenkins [2021]

Ansible vs. Jenkins: Difference Between Ansible and Jenkins [2021]. In this article, we've discussed the difference between Ansible and Jenkins so you can find the answer to this question. Let's get started.