Travis-ci和bintray部署

时间:2016-11-10 19:12:59

标签: travis-ci bintray

我正在尝试通过travis将我的代码部署到bintray。 我的.travis.yml的部署部分

  - provider: bintray
    file: bintray.json
    user: triberraar
    key:
     secure: <encrypted key>
    on:
     repo: triberraar/triber-todo-config-server
     branch: develop
    tags: true

bintray.json文件:

{
  "package": {
    "name": "triber-todo-config-server",
    "repo": "maven",
    "vcs_url": "https://github.com/triberraar/triber-todo-config-server",
    "github_use_tag_release_notes": true,
    "licenses": [
      "MIT"
    ],
    "public_download_numbers": false,
    "public_stats": false
  },
  "version": {
  "name": "${project.version}",
  "vcs_tag": "${project.version}",
  "released": "${build.timestamp}"
  },
  "files": [
    {
      "includePattern": "triber-todo-config-server/target/(.*\.jar)",
      "uploadPattern": "be/tribersoft/triber-todo-config-server/0.0.1-SNAPSHOT/$1"
    },
    {
      "includePattern": "triber-todo-config-server/pom.xml",
      "uploadPattern": "be/tribersoft/triber-todo-config-server/${project.version}/triber-todo-config-server-${project.version}.pom"
    }
  ],
 "publish": true
}

然而,当构建在travis上运行时,部署失败的原因是:

Unexpected HTTP response code 405 returned from Bintray while checking if package 'triber-todo-config-server' exists. Response message: Method Not Allowed

任何人都有这方面的经验吗? 您可以在此处查看travis日志:travis build

感谢任何帮助。

0 个答案:

没有答案