windows机器装的jenkins不能使用命令行打包

直接打开cmd运行命令C:\CocosCreator\CocosCreator.exe --path D:\workspace --build "buildPath=D:\build4;autoCompile=true;platform=android;"没有问题,但是把命令行复制到jenkins里创建freestyle构建任务跑起来报错,错误和配置看下图,麻烦引擎同学帮忙看下



我使用2.0.5版也有遇到相同的问题
直接打开cmd运行命令没有问题,用jenkins执行就出现错误

有测试1.9.3版可以正常运行


麻烦引擎同学帮忙 @jare

1赞

这个错误提示是webgl兼容性问题

请问有解决么?最近我们升级到2.1.0版本,也遇到这个问题。之前1.9.0是在Windows的jenkins编译没问题的。

@huanxinyin 请问这个问题如何解决或者绕过?或者能否提供一个思路?

没办法吗?

这个问题,没得解决方法么,我用的2.0.5的,也一样

1赞

I got a similar error (2.0.7)
我得到了类似的错误(2.0.7)

很久就有人反馈了,貌似没人管:joy:

自己写脚本,放弃jenkins

有解决方案了吗?最近在做自动构建的时候也遇到了

I encountered a similar issue on a CLI Mac build. I see these errors if GPU support is disabled.

Running the following CLI command…

/Applications/CocosCreator.app/Contents/MacOS/CocosCreator --disable-gpu --path . --build "platform=web-mobile"

… produces the error BUT running the command below…

/Applications/CocosCreator.app/Contents/MacOS/CocosCreator --path . --build "platform=web-mobile"

… does not.

Based on the log output, it’s failing during the graphics asset creation step. The graphics asset creation step requires GPU acceleration.

I hope this helps.