Download
🔨
Build
🚀
Deploy (Test)
🧪
Testing
Check Results
👍
Manual Approval
🚢
Deploy (Prod)
🗒️
Post-Build Actions

1. Download

This initial stage is responsible for fetching the latest source code from the specified Git repository. It clones the 'main' branch to ensure the pipeline works with the most up-to-date version of the application.

stage('Download') {
    steps {
        git branch: 'main', poll: false, url: 'https://github.com/karpanitava/mavenbuild.git'
    }
}