Skip to content

Commit

Permalink
Bitbucket example README update
Browse files Browse the repository at this point in the history
  • Loading branch information
savitaashture authored and tekton-robot committed Aug 21, 2020
1 parent 6c984bb commit 4a56bba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/bitbucket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Creates an EventListener that listens for Bitbucket webhook events.
```bash
curl -v \
-H 'X-Event-Key: repo:refs_changed' \
-H 'X-Hub-Signature: sha1=c401e56873be567c1403d8504763760a39236c51' \
-d '{"repository": {"links": {"clone": [{"href": "ssh://git@localhost:7999/~test/helloworld.git", "name": "ssh"}, {"href": "http://localhost:7990/scm/~test/helloworld.git", "name": "http"}]}}, "changes": [{"ref": {"displayId": "master"}}]}' \
-H 'X-Hub-Signature: sha1=544dde67b85743361b0321c9cc55f84472a608dd' \
-d '{"repository": {"links": {"clone": [{"href": "http://localhost:7990/scm/~test/helloworld.git", "name": "http"}, {"href": "ssh://git@localhost:7999/~test/helloworld.git", "name": "ssh"}]}}, "changes": [{"ref": {"displayId": "master"}}]}' \
http://localhost:8080
```

Expand Down
2 changes: 1 addition & 1 deletion examples/bitbucket/triggerbinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ spec:
- name: gitrevision
value: $(body.changes[0].ref.displayId)
- name: gitrepositoryurl
value: $(body.repository.links.clone[1].href)
value: $(body.repository.links.clone[0].href)

0 comments on commit 4a56bba

Please sign in to comment.