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 3887863
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,19 @@ class BuildScanIntegrationTest extends AbstractIntegrationTest {

def 'detects build scan in pipeline log'() {
given:
gradleInstallationRule.gradleVersion = '5.1'
gradleInstallationRule.gradleVersion = '5.2'
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'
if (isUnix()) {
sh 'touch settings.gradle'
sh "'\${gradleHome}/bin/gradle' help --scan"
} else {
bat('copy /y nul settings.gradle')
bat(/"\${gradleHome}\\bin\\gradle.bat" help --scan/)
}
}
Expand Down

0 comments on commit 3887863

Please sign in to comment.