1
0
Fork 0

cleaning up debug statements

pull/1700/head
Vallie Joseph 2024-04-01 13:52:01 +00:00
parent c14e304555
commit 90ee020ccd
2 changed files with 1 additions and 3 deletions

View File

@ -51,6 +51,7 @@ export async function uploadZipToBlobStorage(
zipUploadStream.pipe(uploadStream) // This stream is used for the upload
zipUploadStream.pipe(hashStream).setEncoding('hex') // This stream is used to compute a hash of the zip content that gets used. Integrity check
core.info('Beginning upload of artifact content to blob storage')
try {
await blockBlobClient.uploadStream(
uploadStream,

View File

@ -42,11 +42,9 @@ export async function createZipUploadStream(
zip.on('finish', zipFinishCallback)
zip.on('end', zipEndCallback)
core.debug(`Number of files to upload: ${uploadSpecification.length}`)
for (const file of uploadSpecification) {
await new Promise((resolve, reject) => {
if (file.sourcePath !== null) {
core.debug(`Creating file entry: ${file.sourcePath}`)
// Add a normal file to the zip
zip.entry(
createReadStream(file.sourcePath),
@ -58,7 +56,6 @@ export async function createZipUploadStream(
)
} else {
// add directory to zip
core.debug(`Creating directory entry: ${file.destinationPath}`)
zip.entry(
null,
{name: `${file.destinationPath}/`},