Windows START command not working from Jenkins Pipeline

喜欢而已 提交于 2019-12-06 05:28:59

Windows services are not able to open new console windows but START is doing exactly this. So if you are running Jenkins as a service, this won't work. However, your script should work fine if you simply skip the START command. Just npm run prod should be enough.

EDIT:

OK, here is a workaround: if you really need to use the start command, you could create a task with the task scheduler. Righ in there you can put any batch code you want or just point it to a bat file. Use Schtasks /run /TN TaskName to execute your task from Jenkins.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!