Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Note that Stash does not support Git's legacy HTTP transport protocol

Ashish Adhikari March 4, 2015

Hello,

I'm trying to update Stash build status with the REST API:
$ curl -u username -H "Content-Type: application/json" -X POST http://stash.url.local:7990/scm/app/app.git/rest/build-status/1.0/commits/7a5e5c1deec8f147a7998f728156a7d72afa2067 -d @build0.json > result.html
However, I'm getting the following error:
Invalid request from host 192.168.100.149: Note that Stash does not support Git's legacy HTTP transport protocol.

 

Atlassian Stash v3.6.0 (2d5316791b9b615aeeed4823a7d2e4d0b4cbea74)

 

Thanks,

Ashish

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 4, 2015

Hi Ashish,

The curl command should be:

curl -u username -H "Content-Type: application/json" -X POST http://stash.url.local:7990/rest/build-status/1.0/commits/7a5e5c1deec8f147a7998f728156a7d72afa2067 -d @build0.json > result.html

There's no need to specify the repository that the commit belongs to.

Ashish Adhikari March 5, 2015

Great! Thanks.

TAGS
AUG Leaders

Atlassian Community Events