ncc
This commit is contained in:
parent
11b9048092
commit
1f3c0c57c9
|
@ -6236,7 +6236,6 @@ function uploadArtifact(name, files, rootDirectory, options) {
|
||||||
if (zipSpecification.length === 0) {
|
if (zipSpecification.length === 0) {
|
||||||
throw new errors_1.FilesNotFoundError(zipSpecification.flatMap(s => (s.sourcePath ? [s.sourcePath] : [])));
|
throw new errors_1.FilesNotFoundError(zipSpecification.flatMap(s => (s.sourcePath ? [s.sourcePath] : [])));
|
||||||
}
|
}
|
||||||
const zipUploadStream = yield (0, zip_1.createZipUploadStream)(zipSpecification, options === null || options === void 0 ? void 0 : options.compressionLevel);
|
|
||||||
// get the IDs needed for the artifact creation
|
// get the IDs needed for the artifact creation
|
||||||
const backendIds = (0, util_1.getBackendIdsFromToken)();
|
const backendIds = (0, util_1.getBackendIdsFromToken)();
|
||||||
// create the artifact client
|
// create the artifact client
|
||||||
|
@ -6257,6 +6256,7 @@ function uploadArtifact(name, files, rootDirectory, options) {
|
||||||
if (!createArtifactResp.ok) {
|
if (!createArtifactResp.ok) {
|
||||||
throw new errors_1.InvalidResponseError('CreateArtifact: response from backend was not ok');
|
throw new errors_1.InvalidResponseError('CreateArtifact: response from backend was not ok');
|
||||||
}
|
}
|
||||||
|
const zipUploadStream = yield (0, zip_1.createZipUploadStream)(zipSpecification, options === null || options === void 0 ? void 0 : options.compressionLevel);
|
||||||
// Upload zip to blob storage
|
// Upload zip to blob storage
|
||||||
const uploadResult = yield (0, blob_upload_1.uploadZipToBlobStorage)(createArtifactResp.signedUploadUrl, zipUploadStream);
|
const uploadResult = yield (0, blob_upload_1.uploadZipToBlobStorage)(createArtifactResp.signedUploadUrl, zipUploadStream);
|
||||||
// finalize the artifact
|
// finalize the artifact
|
||||||
|
|
Loading…
Reference in New Issue