如果已经注销,gitlab 管道中的代码推送 whoami 和代码推送注销中断作业

code-push whoami and code-push logout breaking job in gitlab pipeline if already logged out

我希望能够在我的 gitlab 管道阶段中使用特定密钥调用登录之前调用 code-push logout。如果跑步者已经注销,我会收到一个错误:[Error] You are not currently logged in. Run the 'code-push login' command to authenticate with the CodePush server.,我的工作失败了。有什么方法可以在不失败的情况下调用此命令。

code-push cli 没有禁用错误的功能。您可以使用具有相同功能的 appcenter cli(https://github.com/Microsoft/appcenter-cli)。有 --quite 文件禁用 CI 或其他任务的所有错误。