Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.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
Node.js 詹金斯&x2B;Windows上的Grunt=常量EBUSY和enoint错误_Node.js_Jenkins_Gruntjs_Windows Server 2008 R2_Yui Compressor - Fatal编程技术网

Node.js 詹金斯&x2B;Windows上的Grunt=常量EBUSY和enoint错误

Node.js 詹金斯&x2B;Windows上的Grunt=常量EBUSY和enoint错误,node.js,jenkins,gruntjs,windows-server-2008-r2,yui-compressor,Node.js,Jenkins,Gruntjs,Windows Server 2008 R2,Yui Compressor,试图在詹金斯建立一个分支机构。构建总是失败,通常是在处理了一个文件之后,但有时是在要处理的文件列表中的一个随机点上 错误如下所示: "ENOENT, no such file or directory 'C:\Program Files (x86)\Jenkins\jobs\grunt-minify-concat Build\workspace\1419346881831" 或 grunt minify concat是该项目的一个分支,我们在grunt中添加了几行代码,为CSS/JS连接和缩小

试图在詹金斯建立一个分支机构。构建总是失败,通常是在处理了一个文件之后,但有时是在要处理的文件列表中的一个随机点上

错误如下所示:

"ENOENT, no such file or directory 'C:\Program Files (x86)\Jenkins\jobs\grunt-minify-concat Build\workspace\1419346881831"

grunt minify concat是该项目的一个分支,我们在grunt中添加了几行代码,为CSS/JS连接和缩小添加了一个任务。非常标准的东西。以下是配置的相关位:

Grunfile.js

cssmin: {
  dist: {
    expand: true,
    cwd: 'MySite.Web/css/',
    src: ['*.css', '!*.min.css'],
    dest: 'MySite.Web/css/',
    ext: '.min.css'
  }
},

min: {
  dist : {
    expand: true,
    cwd: 'MySite.Web/',
    src : [
      'js/*.js',
      'scripts/*.js',
      '!js/*.min.js',
      '!scripts/*.min.js',
      '!js/jquery*.js',
      '!scripts/jquery*.js'
    ],
    dest : 'MySite.Web/js/',
    ext: '.min.js'
  }
}

grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-yui-compressor');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-msbuild');

grunt.registerTask('build', ['sass', 'cssmin', 'min' , 'msbuild:sln', 'copy:libraryDll']);

grunt.registerTask('buildserver', ['version', 'build', 'tag', 'push', 'output']);

grunt.registerTask('default', ['build']);
packages.json

"devDependencies": {
    "node-sass": "~0.8.1",
    "grunt": "~0.4.1",
    "grunt-contrib-watch": "~0.5.3",
    "grunt-sass": "~0.10.0",
    "grunt-yui-compressor": "0.1.1",
    "grunt-contrib-concat": "0.1.3",
    "grunt-exec": "~0.4.3",
    "grunt-msbuild": "~0.1.9",
    "grunt-contrib-copy": "~0.5.0"
},
我已经对托管Jenkins的Windows 2008R2服务器应用了修补程序,解决了路径长度问题。然而,我仍然得到了EBUSY的问题。谷歌和其他论坛认为这些都是Windows的怪癖,短期内不会被修复


这正常吗?我通常在Ruby上,链轮自动完成所有这些。我对Grunt和Jenkins比较陌生,但这似乎是教科书上Grunt-101的东西,应该很管用。我做错了什么?

您很有可能在Microsoft Word或其他随机非编程编辑器中打开一个文件。Word会锁定对该文件的访问。完全退出MS Word并重新构建。为我解决了这个问题。希望有帮助

您很有可能在Microsoft Word或其他随机非编程编辑器中打开一个文件。Word会锁定对该文件的访问。完全退出MS Word并重新构建。为我解决了这个问题。希望有帮助

FWIW、msbuild进程喜欢挂起。有时我必须手动运行
taskkill/im msbuild.exe/f/t
FWIW,msbuild进程喜欢挂起。有时我必须手动运行
taskkill/im msbuild.exe/f/t
"devDependencies": {
    "node-sass": "~0.8.1",
    "grunt": "~0.4.1",
    "grunt-contrib-watch": "~0.5.3",
    "grunt-sass": "~0.10.0",
    "grunt-yui-compressor": "0.1.1",
    "grunt-contrib-concat": "0.1.3",
    "grunt-exec": "~0.4.3",
    "grunt-msbuild": "~0.1.9",
    "grunt-contrib-copy": "~0.5.0"
},