You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ A [Buildkite plugin](https://buildkite.com/docs/agent/v3/plugins) that lets you
4
4
5
5
1. Configure at least `P4PORT` and `P4USER` (see examples below)
6
6
2. Provision with credentials - a `P4TICKETS` file is recommended
7
-
3. Optionally customise workspace mapping.
7
+
3. Optionally customise workspace mapping with `stream`, `sync` or `view` settings.
8
8
9
9
The `P4CLIENT`, `P4USER` and `P4PORT` used by the plugin are written to a [`P4CONFIG`](https://www.perforce.com/manuals/v16.2/cmdref/P4CONFIG.html) file at the workspace root and the `P4CONFIG` env var is set, so build scripts are able to automatically pick up configuration for any further interactions with Perforce.
10
10
11
11
## Examples
12
12
13
-
### Configuration via env vars:
13
+
### Configuration via env vars
14
14
15
15
```yaml
16
16
env:
@@ -22,7 +22,7 @@ steps:
22
22
- improbable-eng/perforce: ~
23
23
```
24
24
25
-
### Configuration via the plugin:
25
+
### Configuration via plugin
26
26
27
27
```yaml
28
28
steps:
@@ -122,16 +122,18 @@ Relies on people within your team manually clicking `New Build` within the Build
122
122
123
123
### Schedule
124
124
125
-
Schedule builds with a cron in buildkite - this requires no additional setup, but provides the worst response time as changes are made
125
+
[Scheduled builds](https://buildkite.com/docs/pipelines/scheduled-builds) with a cron in buildkite - this requires no additional setup, but provides the slowest response time between a change being made and a build triggered.
126
126
127
127
### Polling
128
128
129
129
A service polls your perforce for the current head revision and POSTs to the Buildkite API to trigger builds for any new changes. Note that you will need to store state to avoid duplicate and skipped builds.
130
130
131
-
### `p4 trigger`
131
+
### P4 Trigger
132
132
133
133
Set up a `p4 trigger` which POSTs to the buildkite API to trigger a build. See [p4 triggers](https://www.perforce.com/manuals/v18.1/cmdref/Content/CmdRef/p4_triggers.html) for more information. Note that this will require admin access to the Perforce server.
134
134
135
+
See [examples](./examples) for sample p4 trigger scripts.
0 commit comments