Skip to content

Commit

Permalink
Update gradle version in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
welandaz committed Nov 18, 2024
1 parent 4b244fc commit b5e9548
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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("""
Expand Down Expand Up @@ -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("""
Expand Down Expand Up @@ -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("""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b5e9548

Please sign in to comment.