maoxuner
(Tony Stark)
August 30, 2022, 3:48am
1
Go to repository builds page, click [+ New Build] button and create a new build. UI notice shows success, no build starts.
Post request was sent to /api/repos/foo/bar/builds?branch=main
, response status code 200, no response body(null)
Browser console reported error
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id')
drone/drone:2.12.1
drone/drone-runner-docker:1.8.2
DOCKER_API_VERSION: 1.39
1 Like
Hi @maoxuner were you able to get through this issue? if not, I will recommend you to refer this doc https://cd.foundation/blog/2020/08/20/your-first-drone-installation-and-build/ and work on it from scratch.
Do not hesitate to ASK for any further queries.
Thanks!
maoxuner
(Tony Stark)
September 9, 2022, 8:26am
3
Thank you. I’m still sufferring from it. The doc helps nothing.
In my condition, builds can start through webhooks. But they can’t start by manual click on the [+ new build] button.
@maoxuner got it! Let me find a solution for this and get back to you.
Thanks!
@maoxuner this might be the reason for the issue:
Create a build using the latest commit for the specified branch. Please note the resulting build is created with event type custom
.
This doc should help with that: Build Create | Drone
You can get some details in this doc too: Harness Community | Harness Developer Hub
Thanks!
maoxuner
(Tony Stark)
September 9, 2022, 3:25pm
6
This is exactly what i want! Thank you very very much!
I think there should be some hints on page. Evey time I submitted new build form, page notification says success, but no build or error message shows. It confused me a lot.
1 Like
Shruthikini
(Shruthi Kini)
September 11, 2022, 2:53pm
7
@maoxuner Glad that it helped you Feel free to ping us for any need
Sure I will take this to the team and bring it to the action.
Thanks for your feedback!