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.

image

  1. Creating build tags as string parameters.

image

  1. Running Shell commands after each build runs.

image

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.

  1. Setting up discord notifier using webhook URL.

image'


If need arises, you can manually deploy the projects using the build with parameters option.

image