From 5c6596b5e14260ab6bbc7bfff9abd48e87ee0a95 Mon Sep 17 00:00:00 2001 From: kashey Date: Thu, 26 Jun 2025 17:31:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=20=D1=81=D0=B1=D0=BE=D1=80=D0=BE=D1=87=D0=BD=D1=83=D1=8E?= =?UTF-8?q?=20=D0=BB=D0=B8=D0=BD=D0=B8=D1=8E=20=D0=BF=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D0=BA=D1=83=20SonarQube?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..e46afc8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,40 @@ +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("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}" + } + } + } + } + + } + +} \ No newline at end of file