diff --git a/lib/projects/upload.ts b/lib/projects/upload.ts index 2f2efb5d7..98068259d 100644 --- a/lib/projects/upload.ts +++ b/lib/projects/upload.ts @@ -53,12 +53,14 @@ async function uploadProjectFiles( }), }); - logger.debug( - i18n(`${i18nKey}.uploadProjectFiles.buildCreated`, { - buildId, - projectName, - }) - ); + if (buildId) { + logger.debug( + i18n(`${i18nKey}.uploadProjectFiles.buildCreated`, { + buildId, + projectName, + }) + ); + } } catch (err) { SpinniesManager.fail('upload', { text: i18n(`${i18nKey}.uploadProjectFiles.fail`, {