我在Azure devops构建管道中的gulp任务中遇到了一些问题。任务失败,出现以下错误。无法找到实际错误所在。请帮助跟踪gulp配置中的错误。提前感谢
错误:
Error deploying { Error: read ECONNRESET
at exports._errnoException (util.js:1026:11)
at TLSWrap.onread (net.js:569:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
Job's done!
吞咽任务:
gulp.task("upload:cdn", function () {
var logger = console.log;
var files = [];
var opts = {
serviceOptions: ['XXX', 'YYYY'], // custom arguments to azure.createBlobService
containerName: 'biz-core', // container name in blob
containerOptions: { publicAccessLevel: "blob" }, // container options
folder: 'assets', // path within container
deleteExistingBlobs: false, // true means recursively deleting anything under folder
concurrentUploadThreads: 2, // number of concurrent uploads, choose best for your network condition
zip: false, // gzip files if they become smaller after zipping, content-encoding header will change if file is zipped
metadata: { cacheControl: 'public,max-age=31536000' }, // metadata for each uploaded file
testRun: false // test run - means no blobs will be actually deleted or uploaded, see log messages for details
};
deploy(opts, files, logger, function (err) {
if (err) {
console.log("Error deploying", err);
}
console.log('Job\'s done!');
});
});
1条答案
按热度按时间dojqjjoe1#
“ECONNRESET”似乎连接错误。您可以检查gulp-deploy-azure-cdn插件,因为您尝试将文件上载到Azure Blob存储。
使用: