Skip to content

Commit

Permalink
Fix tests (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfs committed Jul 4, 2019
1 parent ee10b95 commit aa09b3b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,17 @@ class BuildScanIntegrationTest extends AbstractIntegrationTest {

def 'detects build scan in pipeline log'() {
given:
gradleInstallationRule.gradleVersion = '5.1'
gradleInstallationRule.gradleVersion = '5.5'
gradleInstallationRule.addInstallation()
def pipelineJob = j.createProject(WorkflowJob)
pipelineJob.setDefinition(new CpsFlowDefinition("""
node {
def gradleHome
stage('Preparation') {
gradleHome = tool '${gradleInstallationRule.gradleVersion}'
}
stage('Build') {
// Run the maven build
def gradleHome = tool name: '${gradleInstallationRule.gradleVersion}', type: 'gradle'
writeFile file: 'settings.gradle', text: ''
writeFile file: 'build.gradle', text: "buildScan { termsOfServiceUrl = 'https://gradle.com/terms-of-service'; termsOfServiceAgree = 'yes' }"
if (isUnix()) {
sh 'touch settings.gradle'
sh "'\${gradleHome}/bin/gradle' help --scan"
} else {
bat(/"\${gradleHome}\\bin\\gradle.bat" help --scan/)
Expand Down

0 comments on commit aa09b3b

Please sign in to comment.