Skip to content

Add documentation for drone build create #624

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions content/cli/build/drone-build-create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
date: 2000-01-01T00:00:00+00:00
title: drone build create
author: maxlever
weight: 1
aliases:
- /cli-build-create/
---

This subcommand triggers a new build.

```
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")
```

Example usage:

```
$ drone build create octocat/hello-world --branch=main --param=COSTUME=pirate-octocat
```