From b5e9548a5e690f8547f5b72ef2d6251b703ebbfa Mon Sep 17 00:00:00 2001 From: Iurii Ignatko Date: Mon, 18 Nov 2024 11:19:20 +0100 Subject: [PATCH] Update gradle version in tests --- .../hudson/plugins/gradle/BuildScanIntegrationTest.groovy | 8 ++++---- .../hudson/plugins/gradle/GradleInstallationRule.groovy | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/groovy/hudson/plugins/gradle/BuildScanIntegrationTest.groovy b/src/test/groovy/hudson/plugins/gradle/BuildScanIntegrationTest.groovy index d186ddf5..31e0ba37 100644 --- a/src/test/groovy/hudson/plugins/gradle/BuildScanIntegrationTest.groovy +++ b/src/test/groovy/hudson/plugins/gradle/BuildScanIntegrationTest.groovy @@ -97,7 +97,7 @@ class BuildScanIntegrationTest extends BaseGradleIntegrationTest { node { stage('Build') { // Run the maven build - def gradleHome = tool name: '5.5', type: 'gradle' + def gradleHome = tool name: '7.3.3', type: 'gradle' writeFile file: 'settings.gradle', text: '' writeFile file: 'build.gradle', text: "buildScan { termsOfServiceUrl = 'https://gradle.com/terms-of-service'; termsOfServiceAgree = 'yes' }" if (isUnix()) { @@ -125,7 +125,7 @@ node { def 'detects build scan in pipeline log using withGradle'() { given: - gradleInstallationRule.gradleVersion = '5.6.4' + gradleInstallationRule.gradleVersion = '7.3.3' gradleInstallationRule.addInstallation() def pipelineJob = j.createProject(WorkflowJob) pipelineJob.setDefinition(new CpsFlowDefinition(""" @@ -174,7 +174,7 @@ node { def 'does not find build scans in pipeline logs when none have been published'() { given: - gradleInstallationRule.gradleVersion = '5.6.4' + gradleInstallationRule.gradleVersion = '7.3.3' gradleInstallationRule.addInstallation() def pipelineJob = j.createProject(WorkflowJob) pipelineJob.setDefinition(new CpsFlowDefinition(""" @@ -206,7 +206,7 @@ node { def 'does not find build scans in pipeline logs when none have been published with withGradle'() { given: - gradleInstallationRule.gradleVersion = '5.6.4' + gradleInstallationRule.gradleVersion = '7.3.3' gradleInstallationRule.addInstallation() def pipelineJob = j.createProject(WorkflowJob) pipelineJob.setDefinition(new CpsFlowDefinition(""" diff --git a/src/test/groovy/hudson/plugins/gradle/GradleInstallationRule.groovy b/src/test/groovy/hudson/plugins/gradle/GradleInstallationRule.groovy index fa2c23ec..825ff3b9 100644 --- a/src/test/groovy/hudson/plugins/gradle/GradleInstallationRule.groovy +++ b/src/test/groovy/hudson/plugins/gradle/GradleInstallationRule.groovy @@ -16,7 +16,7 @@ class GradleInstallationRule extends TestWatcher { String gradleVersion private final JenkinsRule j - GradleInstallationRule(String gradleVersion = '5.5', JenkinsRule j) { + GradleInstallationRule(String gradleVersion = '7.3.3', JenkinsRule j) { this.gradleVersion = gradleVersion this.j = j }