Update Vagrant boxes before running packaging test
This commit adds an execution of a Vagrant box update task before bringing a Vagrant box up for running packaging tests. Relates #19155
This commit is contained in:
parent
4f82b2de1a
commit
ef89e564f4
|
@ -223,6 +223,12 @@ for (String box : availableBoxes) {
|
|||
continue;
|
||||
}
|
||||
|
||||
Task update = tasks.create("vagrant${boxTask}#update", VagrantCommandTask) {
|
||||
boxName box
|
||||
args 'box', 'update', box
|
||||
dependsOn checkVagrantVersion
|
||||
}
|
||||
|
||||
Task up = tasks.create("vagrant${boxTask}#up", VagrantCommandTask) {
|
||||
boxName box
|
||||
/* Its important that we try to reprovision the box even if it already
|
||||
|
@ -238,7 +244,7 @@ for (String box : availableBoxes) {
|
|||
args 'up', box, '--provision', '--provider', 'virtualbox'
|
||||
/* It'd be possible to check if the box is already up here and output
|
||||
SKIPPED but that would require running vagrant status which is slow! */
|
||||
dependsOn checkVagrantVersion
|
||||
dependsOn update
|
||||
}
|
||||
|
||||
Task smoke = tasks.create("vagrant${boxTask}#smoketest", Exec) {
|
||||
|
|
Loading…
Reference in New Issue