@@ -151,14 +151,14 @@ class GitlabBuilderTests: XCTestCase {
151151
152152class LiveGitlabBuilderTests : AppTestCase {
153153
154- func test_triggerBuild_live( ) throws {
154+ func test_triggerBuild_live( ) async throws {
155155 try XCTSkipIf (
156156 true ,
157157 " This is a live trigger test for end-to-end testing of pre-release builder versions "
158158 )
159159
160160 // set build branch to trigger on
161- Gitlab . Builder. branch = " generate-docc "
161+ Gitlab . Builder. branch = " main "
162162
163163 // make sure environment variables are configured for live access
164164 Current . awsDocsBucket = { " spi-dev-docs " }
@@ -168,7 +168,7 @@ class LiveGitlabBuilderTests: AppTestCase {
168168 }
169169 Current . gitlabPipelineToken = {
170170 // This Gitlab token is required in order to trigger the pipeline
171- ProcessInfo . processInfo. environment [ " LIVE_PIPELINE_TOKEN " ]
171+ ProcessInfo . processInfo. environment [ " LIVE_GITLAB_PIPELINE_TOKEN " ]
172172 }
173173 Current . siteURL = { " https://staging.swiftpackageindex.com " }
174174
@@ -179,15 +179,15 @@ class LiveGitlabBuilderTests: AppTestCase {
179179 let versionID = UUID ( uuidString: " 93d8c545-15c4-43c2-946f-1b625e2596f9 " ) !
180180
181181 // MUT
182- let res = try Gitlab . Builder. triggerBuild (
182+ let res = try await Gitlab . Builder. triggerBuild (
183183 client: app. client,
184184 logger: app. logger,
185185 buildId: buildId,
186186 cloneURL: " https://github.com/SwiftPackageIndex/SemanticVersion.git " ,
187187 platform: . macosSpm,
188188 reference: . tag( . init( 0 , 3 , 2 ) ) ,
189- swiftVersion: . v2 ,
190- versionID: versionID) . wait ( )
189+ swiftVersion: . v4 ,
190+ versionID: versionID) . get ( )
191191
192192 print ( " status: \( res. status) " )
193193 print ( " buildId: \( buildId) " )
0 commit comments