微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

GCloud 与 Jenkins - gcloud 命令不起作用

如何解决GCloud 与 Jenkins - gcloud 命令不起作用

我正在关注此 documentation,除了最后一部分 Jenkins 将在应用 Gradle 构建完成并生成调试 apk 后执行 GCloud 命令外,我几乎能够处理所有内容

enter image description here

我可以在任何地方使用认控制台执行 GCloud 命令,因为它的环境路径是在初始安装时设置的,但是 Jenkins 虽然在本地运行,但无法执行 GCloud 命令。

enter image description here

这是工作区的错误

enter image description here

更新

我将构建命令从“执行 shell”移动到“执行 Windows 批处理命令”但仍然无法识别

'gcloud' is not recognized as an internal or external command,operable program or batch file.

我已经阅读了许多与 SO 相关的问题,但没有一个我有用,一个是通过更改 Jenkins 服务登录,但这样做后我无法启动它。

enter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。