Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/427.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我需要在我的吞食林过程中使Visual Studio Online(VSTS)中的构建失败_Javascript_Gulp_Azure Devops_Azure Pipelines - Fatal编程技术网

Javascript 我需要在我的吞食林过程中使Visual Studio Online(VSTS)中的构建失败

Javascript 我需要在我的吞食林过程中使Visual Studio Online(VSTS)中的构建失败,javascript,gulp,azure-devops,azure-pipelines,Javascript,Gulp,Azure Devops,Azure Pipelines,我使用JShint并输出错误和警告。我想在这个结果的基础上失败。如何使用VSO构建过程实现这一点 您可以添加一个命令行任务,并在安装了jshint的本地计算机上通过自己的操作进行生成 对于命令行任务,可以使用以下设置: 工具:jshint 参数:repo中的.js文件,例如gulpfile.js 您将得到与直接使用JShint相同的错误消息,例如VSO build中的错误消息: jshint gulpfile.js gulpfile.js: line 9, col 11, Duplicate

我使用JShint并输出错误和警告。我想在这个结果的基础上失败。如何使用VSO构建过程实现这一点


您可以添加一个命令行任务,并在安装了jshint的本地计算机上通过自己的操作进行生成

对于命令行任务,可以使用以下设置:

工具:
jshint

参数:repo中的
.js
文件,例如
gulpfile.js

您将得到与直接使用JShint相同的错误消息,例如VSO build中的错误消息:

jshint gulpfile.js
gulpfile.js: line 9, col 11, Duplicate key 'string'.
gulpfile.js: line 11, col 2, Missing semicolon.
gulpfile.js: line 22, col 36, Missing semicolon.
3 errors
Process completed with exit code 2.