@@ -56,17 +56,22 @@ export async function triggerUpgradeTests(werft: Werft, config: JobConfig, usern
56
56
57
57
werft . phase ( upgradeConfig . phase , upgradeConfig . description ) ;
58
58
59
- annotation = `${ annotation } -a cluster= ${ phase } -a updateGitHubStatus=gitpod-io/gitpod -a subdomain=${ subdomain } -${ upgradeConfig . cloud } `
59
+ annotation = `${ annotation } -a updateGitHubStatus=gitpod-io/gitpod -a subdomain=${ subdomain } -${ upgradeConfig . cloud } -a deps=external `
60
60
61
61
const testFile : string = `.werft/${ phase } -installer-tests.yaml` ;
62
62
63
63
try {
64
- exec (
64
+ const ret = exec (
65
65
`werft run --remote-job-path ${ testFile } ${ annotation } github` ,
66
66
{
67
67
slice : upgradeConfig . phase ,
68
68
} ,
69
- ) . trim ( ) ;
69
+ )
70
+
71
+ const jobID = ret . stdout . trim ( )
72
+ exec (
73
+ `werft log result -d "Werft preview build for ${ phase } " url "https://werft.gitpod-dev.com/job/${ jobID } "` ,
74
+ ) ;
70
75
71
76
werft . done ( upgradeConfig . phase ) ;
72
77
} catch ( err ) {
@@ -80,10 +85,11 @@ export async function triggerUpgradeTests(werft: Werft, config: JobConfig, usern
80
85
81
86
export async function triggerSelfHostedPreview ( werft : Werft , config : JobConfig , username : string ) {
82
87
const replicatedChannel = config . replicatedChannel || config . repository . branch ;
88
+ const version = config . replicatedVersion || "-"
83
89
const cluster = config . cluster || "k3s" ;
84
- const formattedBranch = config . repository . branch . replace ( "/" , "-" ) . slice ( 0 , 11 )
90
+ const formattedBranch = config . repository . branch . replace ( "/" , "-" ) . slice ( 0 , 10 )
85
91
const phase = phases [ cluster ]
86
- const subdomain = `${ formattedBranch } -${ phase . cloud } `
92
+ const subdomain = `${ formattedBranch } y -${ phase . cloud } `
87
93
88
94
const replicatedApp = process . env . REPLICATED_APP
89
95
@@ -114,7 +120,7 @@ export async function triggerSelfHostedPreview(werft: Werft, config: JobConfig,
114
120
115
121
exec ( `git config --global user.name "${ username } "` ) ;
116
122
117
- annotation = `${ annotation } -a channel=${ replicatedChannel } -a preview=true -a runTests=false -a deps=external` ;
123
+ annotation = `${ annotation } -a version= ${ version } -a channel=${ replicatedChannel } -a preview=true -a skipTests=true -a deps=external` ;
118
124
119
125
werft . phase ( "self-hosted-preview" , `Create self-hosted preview in ${ cluster } ` ) ;
120
126
@@ -123,12 +129,18 @@ export async function triggerSelfHostedPreview(werft: Werft, config: JobConfig,
123
129
const testFile : string = `.werft/${ cluster } -installer-tests.yaml` ;
124
130
125
131
try {
126
- exec (
132
+ const ret = exec (
127
133
`werft run --remote-job-path ${ testFile } ${ annotation } github ${ licenseFlag } ` ,
128
134
{
129
135
slice : "self-hosted-preview"
130
136
} ,
131
- ) . trim ( ) ;
137
+ )
138
+
139
+ const jobID = ret . stdout . trim ( )
140
+ exec (
141
+ `werft log result -d "Werft preview build for ${ cluster } " url "https://werft.gitpod-dev.com/job/${ jobID } "` ,
142
+ ) ;
143
+
132
144
133
145
werft . done ( "self-hosted-preview" ) ;
134
146
} catch ( err ) {
0 commit comments