各位大佬好,遇到了一个神奇的问题,我利用 jenkins 拉下来项目代码后,直接 ssh 登录到 jenkins 服务器上执行 yarn install yarn build 就没有什么问题,如果把这两条命令,放到 jenkins 的 shell 中,就会报错,而且没有错误日志,只是返回了一个
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
求各位大佬指点一下 要怎么解决这个问题,非常感谢 😄