Files
tg_bot_1c/Jenkinsfile

51 lines
1.4 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
pipeline {
agent {
label 'windows'
}
environment {
platformVersion = '8.3.26.1581'
}
post {
always {
allure includeProperties: false, jdk: '', results: [[path: 'build/syntax-check/allure']]
junit allowEmptyResults: true, testResults: 'build/syntax-check/junit/junit.xml'
}
success {
echo 'success'
}
failure {
echo 'failure'
}
}
stages {
stage("Синхронизация с хранилищем") {
steps {
script {
scannerHome = tool name: 'sonar-scanner', type: 'hudson.plugins.sonar.SonarRunnerInstallation'
withSonarQubeEnv("Sonar") {
bat "chcp 65001\n SET GITSYNC_V8VERSION=${platformVersion}\n gitsync sync -u ci-bot -p 12345 C:/storage_1c/tg_bot_1c/ src/cf"
}
}
}
}
stage("SonarQube") {
steps {
script {
scannerHome = tool name: 'sonar-scanner', type: 'hudson.plugins.sonar.SonarRunnerInstallation'
withSonarQubeEnv("Sonar") {
bat "chcp 65001\n ${scannerHome}/bin/sonar-scanner -Dsonar.projectVersion=${BUILD_ID}"
}
}
}
}
}
}