Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.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
Jenkins:从Groovy脚本在windows命令中运行grunt命令_Jenkins_Groovy_Command Line_Gruntjs - Fatal编程技术网

Jenkins:从Groovy脚本在windows命令中运行grunt命令

Jenkins:从Groovy脚本在windows命令中运行grunt命令,jenkins,groovy,command-line,gruntjs,Jenkins,Groovy,Command Line,Gruntjs,我负责詹金斯的很多工作。我正在使用Groovy,这样我就可以有一个脚本在Windows和iOS从机上工作。我已经获得了在iOS上运行的grunt命令,但在Windows上没有成功 为iOS工作: println environment["grunt_build"].execute().text 我已为Windows slave尝试了以下操作: println“grunt build”.execute().text println“cmd.exe grunt build”.execute().t

我负责詹金斯的很多工作。我正在使用Groovy,这样我就可以有一个脚本在Windows和iOS从机上工作。我已经获得了在iOS上运行的grunt命令,但在Windows上没有成功

为iOS工作:

println environment["grunt_build"].execute().text
我已为Windows slave尝试了以下操作:

  • println“grunt build”.execute().text
  • println“cmd.exe grunt build”.execute().text
  • println“cmd.exe/c:/grunt build.execute().text
  • println环境[“grunt\u build”].execute().text
  • 我在Windows上试过的那些,要么跳过命令,要么用加载微调器挂起四个小时,永远不会完成。(如果它正在执行)