From 3811d3413488d1e8101f70c0040cf1e4f4585d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Tue, 25 Feb 2025 10:22:41 +0100 Subject: [PATCH] Skip test steps --- Jenkinsfile | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0bd5fb43d4..49c4a150ab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -67,51 +67,6 @@ pipeline { } } - stage('Check') { - steps { - catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { - gradle 'check' - } - junit allowEmptyResults: true, testResults: '**/build/test-results/test/TEST-*.xml,**/build/test-results/tests/test/TEST-*.xml,**/build/jest-reports/TEST-*.xml' - } - } - - // in parallel with check? - stage('Integration Tests') { - steps { - // To rerun integration tests with each build, add '-PrerunIntegrationTests' to the gradle command - gradle 'integrationTest' - junit allowEmptyResults: true, testResults: 'scm-it/build/test-results/javaIntegrationTests/*.xml,scm-ui/build/reports/e2e/*.xml' - archiveArtifacts allowEmptyArchive: true, artifacts: 'scm-ui/e2e-tests/cypress/videos/*.mp4' - archiveArtifacts allowEmptyArchive: true, artifacts: 'scm-ui/e2e-tests/cypress/screenshots/**/*.png' - } - } - - stage('SonarQube') { - steps { - sh 'git config --replace-all "remote.origin.fetch" "+refs/heads/*:refs/remotes/origin/*"' - sh 'git fetch origin develop' - script { - withSonarQubeEnv('sonarcloud.io-scm') { - String parameters = ' -Dsonar.organization=scm-manager -Dsonar.analysis.scmm-repo=scm-manager/scm-manager' - if (env.CHANGE_ID) { - parameters += ' -Dsonar.pullrequest.provider=GitHub' - parameters += ' -Dsonar.pullrequest.github.repository=scm-manager/scm-manager' - parameters += " -Dsonar.pullrequest.key=${env.CHANGE_ID}" - parameters += " -Dsonar.pullrequest.branch=${env.CHANGE_BRANCH}" - parameters += " -Dsonar.pullrequest.base=${env.CHANGE_TARGET}" - } else { - parameters += " -Dsonar.branch.name=${env.BRANCH_NAME}" - if (env.BRANCH_NAME != "develop") { - parameters += " -Dsonar.branch.target=develop" - } - } - gradle "sonarqube ${parameters}" - } - } - } - } - stage('Deployment') { when { anyOf {