mirror of
https://github.com/corda/corda.git
synced 2025-05-05 18:18:32 +00:00
INFRA-381 Removing sonarqube (#6312)
This commit is contained in:
parent
04ddb267fd
commit
f27240b1ad
36
.ci/dev/regression/Jenkinsfile
vendored
36
.ci/dev/regression/Jenkinsfile
vendored
@ -1,9 +1,13 @@
|
|||||||
|
@Library('corda-shared-build-pipeline-steps')
|
||||||
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
|
|
||||||
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'k8s' }
|
agent { label 'k8s' }
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
buildDiscarder(logRotator(daysToKeepStr: '7', artifactDaysToKeepStr: '7'))
|
buildDiscarder(logRotator(daysToKeepStr: '7', artifactDaysToKeepStr: '7'))
|
||||||
disableConcurrentBuilds()
|
|
||||||
timeout(time: 3, unit: 'HOURS')
|
timeout(time: 3, unit: 'HOURS')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,36 +61,6 @@ pipeline {
|
|||||||
" allParallelSlowIntegrationTest --stacktrace"
|
" allParallelSlowIntegrationTest --stacktrace"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Generate sonarqube report') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
try {
|
|
||||||
// running this step here is the only way to not majorly affect the distributed test plugin,
|
|
||||||
// as now that neither returns build files nor runs jacoco reports
|
|
||||||
sh "./gradlew --no-daemon build jacocoRootReport --stacktrace"
|
|
||||||
withSonarQubeEnv('sq01') {
|
|
||||||
sh "./gradlew --no-daemon sonarqube -x test --stacktrace"
|
|
||||||
}
|
|
||||||
timeout(time: 3, unit: 'MINUTES') {
|
|
||||||
script {
|
|
||||||
try {
|
|
||||||
def qg = waitForQualityGate();
|
|
||||||
if (qg.status != 'OK') {
|
|
||||||
error "Pipeline aborted due to quality gate failure: ${qg.status}"
|
|
||||||
}
|
|
||||||
} catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
|
|
||||||
println('No sonarqube webhook response within timeout. Please check the webhook configuration in sonarqube.')
|
|
||||||
// continue the pipeline
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (err) {
|
|
||||||
println('Error while trying to execute sonarqube analysis, will be skipped.')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user