travis-ci - Travis CLI:使用“travis encrypt”加密返回 — 找不到资源 ({"file":"not found"})
问题描述
我正在尝试使用有关 Travis CI docs的命令加密.travis.yml文件中的令牌。travis encrypt 123 --add deploy.api_key --pro
相反,我进入了控制台resource not found ({"file":"not found"})
先决条件:
我已经在我的机器上安装了 Travis CLI。此外,我使用 command 从 CLI 成功登录了 travis travis login --github-token {tokenHere} --com
。Github 与 Travis CI 相连。
带有 --debug 的结果— 带有 --debug 的 命令结果
如果我手动访问https://api.travis-ci.com/repos/{Nickname}/HerokuTest,我会收到一个包含项目信息的 XML 文件。
拜托,你能告诉我,我怎样才能看到这里有什么问题,或者我还能在哪里寻找?
解决方案
Resource not found 基本上意味着 Travis 无法找到您的项目。据我所知,机密与项目相关联,因此 Travis 需要找到您为哪个项目生成机密。综上所述,您可能缺少 -r 标志。尝试这样的事情:
travis encrypt aws_secret_access_key=very_secret_string -r mygithubusername/reponame --com
推荐阅读
- mysql - 在sql中获取某个数字
- spring-boot - 管理员如何使用 Spring Boot 锁定/解锁在 mysql 数据库中注册的用户?
- firebase - Firebase:收听路径的子项创建
- javascript - 信息:指定的 Android SDK 构建工具版本 (28.0.2) 被忽略
- r - 循环遍历R中列表上的项目
- python - 如何使用自定义名称创建数据框
- android - 如何修复此错误“执行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 时发生故障”
- r - 使用 R 和 Tidyverse,如何从多个 Excel 工作簿中导入同一种工作表
- terminal - 在 Raspberry pi 3 中运行结构化文本文件
- azure - Azure Devops IIS Web App 部署替换变量