Reputation: 55
I am trying to encrypt token in .travis.yml file using command travis encrypt 123 --add deploy.api_key --pro
regarding Travis CI docs.
Instead I got in console resource not found ({"file":"not found"})
Prerequisites:
I have installed Travis CLI on my machine. Also I successfully logged in travis from CLI with command travis login --github-token {tokenHere} --com
. Github is connected with Travis CI.
Result with --debug — command result with --debug
If I go manually to https://api.travis-ci.com/repos/{Nickname}/HerokuTest I receive an XML file with info about the project.
Please, can you tell me, how can I see what is wrong here, or where else I can seek?
Upvotes: 2
Views: 859
Reputation: 11
Resource not found basically means that Travis isn't able to find your project. As far as I know, secrets are associated with the project, so Travis needs to find which project are you generating your secrets for. All that said, you're probably missing the -r flag. Try something like this:
travis encrypt aws_secret_access_key=very_secret_string -r mygithubusername/reponame --com
Upvotes: 1