@@ -276,11 +276,20 @@ installerTests(TEST_CONFIGURATIONS[testConfig]).catch((err) => {
276
276
277
277
export async function installerTests ( config : TestConfig ) {
278
278
console . log ( config . DESCRIPTION ) ;
279
+
279
280
// these phases sets up or clean up the infrastructure
280
- // If the cloud variable is not set, we have a cleanup job in hand
281
- const majorPhase : string = cloud == "" ? "cleanup-infra" : `create-${ cloud } -infra` ;
281
+ let majorPhase : string ;
282
+ let phaseMessage : string ;
283
+ if ( cloud == "" ) {
284
+ // If the cloud variable is not set, we have a cleanup job in hand
285
+ majorPhase = "cleanup-infra" ;
286
+ phaseMessage = "Cleanup preview and test environment infrastructure" ;
287
+ } else {
288
+ majorPhase = `create-${ cloud } -infra` ;
289
+ phaseMessage = `${ op } Gitpod infrastructure on ${ cloud } ` ;
290
+ }
282
291
283
- werft . phase ( majorPhase , `Manage the infrastructure in ${ cloud } ` ) ;
292
+ werft . phase ( majorPhase , phaseMessage ) ;
284
293
for ( let phase of config . PHASES ) {
285
294
const phaseSteps = INFRA_PHASES [ phase ] ;
286
295
const ret = callMakeTargets ( phaseSteps . phase , phaseSteps . description , phaseSteps . makeTarget ) ;
@@ -292,7 +301,7 @@ export async function installerTests(config: TestConfig) {
292
301
293
302
await sendFailureSlackAlert ( phaseSteps . description , err , slackHook . get ( "self-hosted-jobs" ) ) ;
294
303
295
- werft . fail ( `create- ${ cloud } -infra` , err . message ) ;
304
+ werft . fail ( majorPhase , err . message ) ;
296
305
297
306
return ;
298
307
}
0 commit comments