I notice new UI for 2.0 add a new feature,new build
But I not sure what does it mean,
The promote feature in UI exactly means promote trigger
trigger:
event:
- promote
- rollback
Is there a build event for “new build”?
I notice new UI for 2.0 add a new feature,new build
But I not sure what does it mean,
The promote feature in UI exactly means promote trigger
trigger:
event:
- promote
- rollback
Is there a build event for “new build”?
It means exactly this (below), but you can’t specify commit afaik.
NAME:
drone build create - create a build
USAGE:
drone build create [command options] <repo/name>
OPTIONS:
--commit value source commit
--branch value source branch
--param value, -p value custom parameters to be injected into the job environment. Format: KEY=value
--format value format output (default: "Number: {{ .Number }}\nStatus: {{ .Status }}\nEvent: {{ .Event }}\nCommit: {{ .After }}\nBranch: {{ .Target }}\nRef: {{ .Ref }}\nAuthor: {{ .Author }} {{ if .AuthorEmail }}<{{.AuthorEmail}}>{{ end }}\nMessage: {{ .Message }}\n")
trigger:
event:
- custom
https://docs.drone.io/pipeline/triggers/#by-event
https://docs.drone.io/api/builds/build_create/
Cheers,
Thanks @Pawel_Slotorsz
The doc seems a little bit difficult to read,some important things hide deeply