Skip to content

Commit

Permalink
Add 'key' to CommandStep
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesFraser-FD committed May 5, 2023
1 parent 4ecb697 commit eb8fe26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ class BuildkitePipeline implements ConfigurableEnvironment {
model.timeout_in_minutes = Math.max(timeout.toMinutes(), 1)
}

/**
* A unique string to identify the step.
*/
void key(String key) {
model.key = key
}

/**
* Add a Buildkite plugin to this step.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ contributor([ctx, closureCtx]) {
The amount of time a job created from this step is allowed to run. If the job does not finish within this
limit, it will be automatically cancelled and the build will fail.
'''
method name: 'key', params: [key: String], doc: 'A unique string to identify the step.'
method name: 'plugin', params: [name: String], doc: 'Add a Buildkite plugin to this step.'
method name: 'plugin', params: [name: String, body: Object], doc: 'Add a Buildkite plugin to this step.'
method name: 'docker', params: [body: Closure], doc: 'Add the Docker plugin to this step.'
Expand Down

0 comments on commit eb8fe26

Please sign in to comment.