Jenkins Configuration
As we have the build pipeline running the stages as defined in the Jenkinsfile for any project, we have a lot more going once the build is succedded. Many things are configured into the deploy staging pipeline.
- Running the ansible playbook for testing.
- Sending the build status notification to Samagra discord server.
Jenkins allow us to configure all such tasks.
- Creating build tags as string parameters.
- Running Shell commands after each build runs.
Here as you can see, the tag parameter which we created in step 1 gets used with ansible-playbook. You can create several parameters if needed.
- Setting up discord notifier using webhook URL.
'
If need arises, you can manually deploy the projects using the build with parameters option.