Build: Support offline build of bwc zip (#24037)
The bwc checkout for backcompat tests currently always tries to fetch the latest from the upstream remote. This change makes fetching from upstream conditional on not running an offline build.
This commit is contained in:
parent
16a2048416
commit
b0003edcf4
|
@ -65,6 +65,7 @@ task addUpstream(type: LoggedExec) {
|
||||||
}
|
}
|
||||||
|
|
||||||
task fetchLatest(type: LoggedExec) {
|
task fetchLatest(type: LoggedExec) {
|
||||||
|
onlyIf { project.gradle.startParameter.isOffline() == false }
|
||||||
dependsOn addUpstream
|
dependsOn addUpstream
|
||||||
workingDir = checkoutDir
|
workingDir = checkoutDir
|
||||||
commandLine = ['git', 'fetch', 'upstream']
|
commandLine = ['git', 'fetch', 'upstream']
|
||||||
|
|
Loading…
Reference in New Issue