Concourse获取bitbucket资源错误解密JSON:在解码JSON的过程中

问题描述 投票:0回答:1

我想用concourse创建一个管道,但是遇到了一个意外的json错误.谁能帮我弄清楚问题出在哪里,如何解决呢?下面,你会找到相关的文件和资料的。

非常感谢你的时间。

命令

sudo fly -t tutorial set-pipeline -c pipeline.yml -p simple-task -l my-vars.yml my-key.yml --verbose

错误。

2020/06/08 23:31:28 GET /api/v1/info HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip


2020/06/08 23:31:28 HTTP/1.1 200 OK
Content-Length: 82
Content-Type: application/json
Date: Mon, 08 Jun 2020 21:31:28 GMT
Vary: Accept-Encoding
X-Concourse-Version: 6.2.0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

{"version":"6.2.0","worker_version":"2.2","external_url":"http://localhost:8080"}

2020/06/08 23:31:28 GET /api/v1/teams/main/pipelines/simple-task/config HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip


2020/06/08 23:31:28 HTTP/1.1 404 Not Found
Date: Mon, 08 Jun 2020 21:31:28 GMT
Vary: Accept-Encoding
X-Concourse-Version: 6.2.0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block
Content-Length: 0

pipeline.yml

---
resources:
    name: source-code
    type: git
    source: ((pipelines_source))
jobs:
  - name: job
    public: true
    plan:
      - get: source-code
        trigger: true
      - task: simple-task
        config:
          platform: linux
          image_resource:
            type: registry-image
            source: { repository: aretelabs/nomad-resource }
          run:
            path: echo
            args: ["Ready"]

my-vars.yml

---
pipelines_source:
      branch: master
      uri: [email protected]:username/repo.git 
      private_key: ((private_key))

my-key.yml

private_key: -----BEGIN OPENSSH PRIVATE KEY-----
... blablabla ...
-----END OPENSSH PRIVATE KEY-----
json get yaml bitbucket concourse
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.