buildkite-graph
Advanced tools
Comparing version
@@ -15,2 +15,3 @@ import { KeyValue } from '../key_value'; | ||
declare type Agents = Map<string, string>; | ||
declare type ConcurrencyMethod = 'eager' | 'ordered'; | ||
export declare class CommandStep extends LabeledStep { | ||
@@ -23,2 +24,4 @@ readonly command: Command[]; | ||
private concurrencyGroup?; | ||
private _concurrencyMethod?; | ||
private get concurrencyMethod(); | ||
private _artifactPaths; | ||
@@ -47,2 +50,3 @@ private _agents; | ||
withConcurrency(concurrency: number, group: string): this; | ||
withConcurrencyMethod(method: ConcurrencyMethod): this; | ||
withSoftFail(fail: ExitStatus | true): this; | ||
@@ -49,0 +53,0 @@ skip(skip: SkipValue | SkipFunction): this; |
@@ -194,2 +194,11 @@ "use strict"; | ||
}); | ||
Object.defineProperty(CommandStep.prototype, "concurrencyMethod", { | ||
get: function () { | ||
return this._concurrencyMethod !== 'ordered' | ||
? this._concurrencyMethod | ||
: undefined; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(CommandStep.prototype, "agents", { | ||
@@ -287,2 +296,7 @@ get: function () { | ||
}; | ||
CommandStep.prototype.withConcurrencyMethod = function (method) { | ||
ow_1.default(method, ow_1.default.string.oneOf(['eager', 'ordered'])); | ||
this._concurrencyMethod = method; | ||
return this; | ||
}; | ||
CommandStep.prototype.withSoftFail = function (fail) { | ||
@@ -323,3 +337,3 @@ if (fail !== true) { | ||
case 2: | ||
_c.env = _d.sent(), _c.parallelism = this.parallelism, _c.concurrency = this.concurrency, _c.concurrency_group = this.concurrencyGroup, _c.artifact_paths = this._artifactPaths.size | ||
_c.env = _d.sent(), _c.parallelism = this.parallelism, _c.concurrency = this.concurrency, _c.concurrency_group = this.concurrencyGroup, _c.concurrency_method = this.concurrencyMethod, _c.artifact_paths = this._artifactPaths.size | ||
? Array.from(this._artifactPaths) | ||
@@ -326,0 +340,0 @@ : undefined, _c.agents = this.agents.size ? base_1.mapToObject(this.agents) : undefined, _c.timeout_in_minutes = this.timeout, _c.plugins = plugins_1.transformPlugins(this.plugins), _c.soft_fail = transformSoftFail(this._softFail), _c.skip = this._skip ? transformSkipValue(this._skip) : undefined; |
{ | ||
"name": "buildkite-graph", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
150826
0.5%3016
0.6%