Problem using Encrypted bintray key in travis.yml

So, when I use below in .travis.yml, it works.

*********************
    deploy:
      user: mybintrayuserid
      provider: bintray
      file: .bintray_descriptor.yml
      key: myapikey

***********************

but if i change this below i get an error:

**************************
deploy:
  user: mybintrayuserid
  provider: bintray
  file: .bintray_descriptor.yml
  key:
    secure: encryptedHashHash
****************************

The error I am getting is:

[Bintray Upload] Bintray Response: 401 Unauthorized. This resource requires authentication.

How I generated the key:

travis encrypt myapikey --add deploy.key

Note. I added a screenshot for more details.

Screenshot: http://i.stack.imgur.com/rhkgJ.png

+4
source share
2 answers

Make sure that you are also using the correct user.

In my case, I tried to deploy a repo owned by the organization, and I mistakenly set userit up as the name of the organization.

user .travis.yml , API.

, , - .

+3

FWIW, . , Bintray, Bintray API, Travis, Travis.

+1

All Articles