Skip to content

sentrio/gitlab-cicd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 

Repository files navigation

gitlab-cicd

Gitlab CICD integration

CICD Deployment Frequency Integration

CICD Deployment Frequency Integration requires the following variables:

  • SENTRIO_CLIENT_ID: SENTRIO client id
  • SENTRIO_CLIENT_SECRET: SENTRIO client secret
  • PROJECT_ID: The Jira project id associated to this applications
  • APPLICATION_NAME: the application name (generally the artifactId)
  • APPLICATION_VERSION: the application version
  • ENVIRONMENT: name of the deployment environment

In order to notify application deployments to the SENTRIO VSM platform:

  1. Include the remote sentrio deploy script:
include:
  - remote: 'https://raw.githubusercontent.com/sentrio/gitlab-cicd/main/gitlab-ci-deploy.yml'
  1. add a sentrio_deployment_ENV call to your pipeline referencing the .sentrio_deployment job, e.g.:
sentrio_deploy_dev:
  stage: deploy
  extends: .sentrio_deployment
  variables:
    PROJECT_ID: XX
    APPLICATION_NAME: "gitlab-app"
    APPLICATION_VERSION: 1.0.0-SNAPSHOT
    ENVIRONMENT: "dev"  

CICD QA Sonarqube

CICD Sonar QA Integration requires the following environment variables:

  • SENTRIO_CLIENT_ID: Sentrio client id
  • SENTRIO_CLIENT_SECRET: Sentrio access token
  • SONAR_BASE_URL: Sonar base url
  • SONAR_TOKEN: Sonar access token
  • SONAR_PROJECT_ID: Sonar Project Id
  • BRANCH: branch name
  • PROJECT_ID: The Jira project id associated to this application

In order to notify Sonar Qa metrics to the SENTRIO VSM platform:

  1. Include the remote sentrio deploy script:
include:
  - remote: 'https://raw.githubusercontent.com/sentrio/gitlab-cicd/main/gitlab-ci-sonarqube.yml'
  1. Integrate the .sentrio_sonarqube script calling into your existing deployment stages
sentrio_qa:
  stage: test
  extends: .sentrio_sonarqube
  variables:
    SONAR_BASE_URL: https://SONAR_URL
    SONAR_TOKEN : SONAR_TOKEN
    SONAR_PROJECT_ID: SONAR_PROJECT_ID
    BRANCH: "BRANCH"
    PROJECT_ID: "JIRACODE"  

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •