Commit 93794d05 authored by Juraj Sloboda's avatar Juraj Sloboda

Merge branch 'master' into asyncio-and-code-improvement

parents a4c1fce3 bed6e717
#!/usr/bin/groovy
@Library('gcloud-pipeline-library') _
pipeline {
agent {
label 'base7'
}
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
timeout(time: 1, unit: 'HOURS')
timestamps()
gitLabConnection('IFNE gitlab')
}
triggers {
gitlab(triggerOnPush: true, triggerOnMergeRequest: true, branchFilterType: 'All')
}
stages {
stage('Setup') {
steps {
devBuildPrepare()
}
}
stage('Quality gate') {
when {
expression {
env.BRANCH_NAME == 'master'
}
}
steps {
withSonarQubeEnv('IFNE Sonar') {
sonarRunScanner()
}
timeout(time: 1, unit: 'HOURS') {
waitForQualityGate abortPipeline: true
}
}
}
}
post {
always {
deleteDir()
}
success {
updateGitlabCommitStatus(name: 'jenkins', state: 'success')
}
failure {
updateGitlabCommitStatus(name: 'jenkins', state: 'failed')
}
}
}
# ******************** PyLint ***********************
#-----------------------------------------------------
#Path to the pylint executable to use in pylint analysis. Set to empty to use the default one (default is pylint).
#It must to be set on Windows. Use either masked backslashes or slashes as path separators; examples: C:\\Python26\\Scripts\\pylint.bat or C:/Python/26/Scripts/pylint.bat
#default : /usr/local/bin/pylint
sonar.python.pylint=/usr/bin/pylint
#-----------------------------------------------------
#Path to the pylint configuration file (relative to project root or absolute) to use in pylint analysis. Set to empty to use the default.
#default: .pylintrc
#sonar.python.pylint_config
#-----------------------------------------------------
#Ant pattern describing the path to Pylint report, relative to projects root. No default value. The report have to conform to format "{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}".
#defaut: pylint-report.txt
#sonar.python.pylint.reportPath=reports/pylint.log
# ******************** PyUnit ***********************
#-----------------------------------------------------
#Ant pattern describing the path to unit tests execution reports, relative to projects root. Leave unset to use the default ("xunit-reports/xunit-result-*.xml").
#Reports have to conform to the JUnit Report XML format.
#default : nosetests.xml
#sonar.python.xunit.reportPath=reports/unittests.xml
#-----------------------------------------------------
#When enabled the test execution statistics is provided only on project level. Use this mode when paths in report are not found. Disabled by default.
#default : true
#sonar.python.xunit.skipDetails
# ******************** Coverage ***********************
#-----------------------------------------------------
#Ant pattern describing the path to coverage reports, relative to projects root. Leave unset to use the default ("coverage-reports/coverage-*.xml").
#The reports have to conform to the Cobertura XML format.
#default: coverage.xml
#sonar.python.coverage.reportPath=reports/unit/coverage.xml
#-----------------------------------------------------
#Ant pattern describing the path to coverage reports for integration tests, relative to projects root. Leave unset to use the default ("coverage-reports/it-coverage-*.xml").
#The reports have to conform to the Cobertura XML format.
#default:it-coverage.xml
#sonar.python.coverage.itReportPath=reports/integration/coverage.xml
# ******************** Project ***********************
sonar.sources=.
sonar.exclusions=docker/**/*,doc/**/*,tools/**/*
#sonar.tests=.
#sonar.test.inclusions=tests.py
sonar.sourceEncoding=UTF-8
sonar.verbose=true
sonar.language=py
sonar.projectName=PyDTN
sonar.projectKey=eu.ifne.space:bp
sonar.projectVersion=1.0
sonar.host.url=https://status.ifne.eu/sonar
sonar.login=a7710c2e4fdff38ad469fe2a068d702593ed7976
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment