Deployment Job Pipeline Setup

In this tutorial, we will go through the step by step process to setup Deployment Job to the Jenkins

DIGIT-Deployment Jobs:

  • You may have doubts about what is deployment jobs? Below we explained about deployment jobs in detail.

What are deployment jobs?

  • Once we build a pipeline using jenkins we need to deploy(to set out) into a environment. For that we nee deployment jobs. Here, deployment jobs are nothing but the clusters(group of nodes or VM's)which are created using different environments. some of the environments that are present in DIGIT-DevOps:

  • In DIGIT there are so many deployment jobs are there. Go to the following repo to see all the deployment jobs.
  • Here you can see some of the deployment jobs that are present in DIGIT-DevOps.

    - name: dev
      acl: [egovernments*micro-service-dev]
    - name: bihar-prod
      acl: [egovernments*bihar-prod]
    - name: bihar-dev
      acl: [egovernments*bihar-dev]
    - name: bihar-uat
      acl: [egovernments*bihar-uat]
    - name: qa
      acl: [egovernments*micro-service-qa] 
    - name: uat
      acl: [egovernments*micro-service-uat] 
    - name: ukd-dev
      acl: [egovernments*ukd-dev] 
    - name: ukd-prod-sdc
      acl: [egovernments*ukd-prod] 
    - name: ukd-sdc-uat
      acl: [egovernments*ukd-uat]                 
    - name: ci
      acl: [egovernments*micro-service-devops]      
    - name: ukd-dev-sdc
      acl: [egovernments*ukd-dev]
    - name: staging
      acl: [egovernments*staging-qa] 
    - name: nugp-demo
      acl: [egovernments*nugp-team] 
    - name: central-instance
      acl: [egovernments*micro-service-dev,egovernments*micro-service-qa]

What is acl?

  • Access control list (ACL) An access-control list is a list of permissions attached to an aws.

  • An ACL specifies which users or system processes can view, create, modify, delete, or otherwise manage objects.

  • Simply, ACL is a list of members in team and they can only able to access that job.

To deploy new job:
  1. Repo: To which repository the deployment job be added.

  2. Branch: Usually master branch.

  3. Helm Directory: deploy-as-code/helm

  4. Environment: Add job-name here.

{{- else if (eq $ "dev") }}            
deployer(repo:'', branch: 'dev', helmDir: 'deploy-as-code/helm', environment: '{{ $ }}')""")

refer this linkegovernments/DIGIT-DevOps/blob/master/deploy-as-code/helm/charts/backbone-services/jenkins/values.yam for moreinfo

go run main.go -c -e ci 'jenkins' 

Deployment Job pipeline:

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.