-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
28 lines (28 loc) · 1.93 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
node {
stage ('Provisioning') {
git 'https://github.com/RunOpenCode/exchange-rate-intesa-rs'
}
docker.image('runopencode/php-testing-environment:7.0.15').inside {
stage ('Build on 7.0.15') {
sh 'ant'
}
}
docker.image('runopencode/php-testing-environment:7.1.1').inside {
stage ('Build on 7.1.1') {
sh 'ant'
}
}
stage('SonarQube') {
def scannerHome = tool 'SonarQube Scanner 2.8';
withSonarQubeEnv {
sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=runopencode-exchange-rate-banca-intesa-rs -Dsonar.projectName='Exchange rate - Banca Intesa Serbia adapter' -Dsonar.projectVersion=1.0 -Dsonar.sources=src -Dsonar.language=php -Dsonar.sourceEncoding=UTF-8 -Dsonar.tests=test -Dsonar.php.tests.reportPath=build/logs/junit.xml -Dsonar.php.coverage.reportPath=build/logs/clover.xml -Dsonar.clover.reportPath=build/logs/clover.xml -Dsonar.coverage.exclusions=test"
}
}
stage('Reporting') {
step([$class: 'hudson.plugins.checkstyle.CheckStylePublisher', pattern: 'build/logs/checkstyle.xml'])
step([$class: 'PmdPublisher', canComputeNew: false, pattern: 'build/logs/pmd.xml'])
step([$class: 'DryPublisher', canComputeNew: false, defaultEncoding: '', healthy: '', pattern: 'build/logs/pmd-cpd.xml', unHealthy: ''])
step([$class: 'JavadocArchiver', javadocDir: 'build/api', keepAll: false])
step([$class: 'XUnitPublisher', testTimeMargin: '3000', thresholdMode: 1, thresholds: [[$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: ''], [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '']], tools: [[$class: 'JUnitType', deleteOutputFiles: true, failIfNotNew: false, pattern: 'build/logs/junit.xml', skipNoTestFiles: false, stopProcessingIfError: true]]])
}
}