Skip to content
Snippets Groups Projects
Commit 84785a28 authored by Sebastian Mihalache's avatar Sebastian Mihalache :hammer_pick:
Browse files

fix(mts): throw error when file not found

parent 29dc927d
No related branches found
No related tags found
3 merge requests!196S25 - EiC submit revision,!189S25,!177Hin 230 eic request revision
...@@ -38,17 +38,21 @@ module.exports = { ...@@ -38,17 +38,21 @@ module.exports = {
fragment, fragment,
xmlFile, xmlFile,
isEQA, isEQA,
}).then(() => { })
const packageName = get(xmlFile, 'name', '').replace('.xml', '') .then(() => {
const filename = isEQA const packageName = get(xmlFile, 'name', '').replace('.xml', '')
? `ACCEPTED_${packageName}.${fragment.version}.zip` const filename = isEQA
: `${packageName}.zip` ? `ACCEPTED_${packageName}.${fragment.version}.zip`
: `${packageName}.zip`
return PackageManager.uploadFiles({ return PackageManager.uploadFiles({
filename, filename,
s3Config, s3Config,
config: ftpConfig, config: ftpConfig,
})
})
.catch(e => {
throw new Error(e)
}) })
})
}, },
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment