Skip to content

Instantly share code, notes, and snippets.

@Kirill
Created May 29, 2019 14:04
Show Gist options
  • Save Kirill/60b8e44e619fb15829cdd73c11406671 to your computer and use it in GitHub Desktop.
Save Kirill/60b8e44e619fb15829cdd73c11406671 to your computer and use it in GitHub Desktop.
Example of .gitlab-ci.yml for 1C EDT (GitConverter) repository
sonarqube_master_job:
image: emeraldsquad/sonar-scanner
stage: test
only:
- master
variables:
GET_VERS: 'PROJECT_VERSION=`cat src/Configuration/Configuration.mdo | grep "<version>" | sed "s|\s*<version>||" | sed "s|</version>\s*||"`'
before_script:
- 'eval $GET_VERS'
script:
- sonar-scanner -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN -Dsonar.sourceEncoding=UTF-8 -Dsonar.projectVersion=$PROJECT_VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment