Created
May 29, 2019 14:04
-
-
Save Kirill/60b8e44e619fb15829cdd73c11406671 to your computer and use it in GitHub Desktop.
Example of .gitlab-ci.yml for 1C EDT (GitConverter) repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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