Skip to content

Commit

Permalink
Merge pull request #5 from JamesFraser-FD/feature/add-key-to-commandstep
Browse files Browse the repository at this point in the history
Add 'key' attribute to CommandStep
  • Loading branch information
sagebind authored May 15, 2023
2 parents 4ecb697 + eb8fe26 commit 995afec
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 995afec

Please sign in to comment.