Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitLab Status API Endpoint #6

Closed
bradrydzewski opened this issue Dec 11, 2018 · 5 comments
Closed

Update GitLab Status API Endpoint #6

bradrydzewski opened this issue Dec 11, 2018 · 5 comments

Comments

@bradrydzewski
Copy link
Member

It looks like we are using a deprecated endpoint here:
https://github.com/drone/go-scm/blob/master/scm/driver/gitlab/repo.go#L149

need to change to this:
https://docs.gitlab.com/ee/api/commits.html#post-the-build-status-to-a-commit

@Mtax
Copy link

Mtax commented Dec 25, 2018

After moving from Drone 0.8 to 1.0, drone do not send back the building results.At this point, what can I do? What is the plan about this issue.Thanks

@tboerger
Copy link
Contributor

Maybe you just configured something wrong? The current Gitlab api have been deprecated, but not dropped.

@t794104
Copy link

t794104 commented Feb 18, 2019

Confirmed the error :
Drone 1.0.0.rc5
Gitlab 11.2.3

Jobs doe not update status in gitlab; in my apach logging (usesd as proxy) i have the following lines
"POST /api/v4/projects/cicd%2Fyamllint/repository/commits/2c8c789a06f81959cf992ddc66c73d8632ab06d4/statuses?name=continuous-integration%2Fdrone%2Fpush&state=pending&target_url=http%3A%2F%2Fdrone.mgmt3.cisnet%2Fcicd%2Fyamllint%2F1 HTTP/1.1" 404 25

It looks like a simple url update too get it working ;
path := fmt.Sprintf("api/v4/projects/%s/statuses/%s?%s", encode(repo), ref, params.Encode())

how do i do this and test it ? can you @bradrydzewski build me a tc6 i can test ?

@tboerger
Copy link
Contributor

You could use the integration test suite part of this repo to test your change

@bradrydzewski
Copy link
Member Author

fixed by 57adc70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants