14 lines
360 B
Groovy
14 lines
360 B
Groovy
import org.elasticsearch.gradle.test.GradleDistroTestTask
|
|
|
|
String boxId = project.properties.get('vagrant.windows-2012r2.id')
|
|
if (boxId != null) {
|
|
vagrant {
|
|
hostEnv 'VAGRANT_WINDOWS_2012R2_BOX', boxId
|
|
}
|
|
} else {
|
|
// box id was not supplied, so disable the distro tests
|
|
tasks.withType(GradleDistroTestTask).configureEach {
|
|
onlyIf { false }
|
|
}
|
|
}
|