Automating Deployment with Multibranch Pipeline in Jenkins
Deploying Django Todo App from GitHub to AWS EC2 via Multibranch Jenkins Pipeline
What is a Multibranch Pipeline ?
Multibranching allows automating the branching, building and testing of complex repositories with many constantly changing long-lived branches representing variants. This is essential for efficient modern development environments.
Pre-Requisites
Ensure that the Jenkins server is already up and running.
A Git repository with multiple branches.
https://github.com/robinthakur00/django-todo-app.git
Create a Multibranch Pipeline
Login to Jenkins.
Click on "New Item" and specify a job name. Then, select "Multibranch Pipeline option".
Give Display Name and Description
Under Branch Sources → Add source → Chose Git → and provide GitHub URL and Credentials (Credentials are optional if it is public repo)
Apply and Save the Job
Jenkins now automatically scans the repository and creates a job for each branch where it finds a Jenkinsfile, then initiates the first build.
Contributing:
Contributions are welcome! If you find any issues or want to improve this project, please open an issue or submit a pull request.