bdy 1.12.10-dev-pipeline-run → 1.12.12-dev-pipeline-run
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/distTs/package.json
CHANGED
|
@@ -25,7 +25,7 @@ commandPipelineRun.option('-c, --clear-cache', texts_1.OPTION_PIPELINE_RUN_CLEAR
|
|
|
25
25
|
commandPipelineRun.option('--priority <priority>', texts_1.OPTION_PIPELINE_RUN_PRIORITY);
|
|
26
26
|
commandPipelineRun.option('-v, --variable <variables...>', texts_1.OPTION_PIPELINE_RUN_VAR);
|
|
27
27
|
commandPipelineRun.option('-ve, --variable-encrypted <variables...>', texts_1.OPTION_PIPELINE_RUN_VAR);
|
|
28
|
-
commandPipelineRun.option('--
|
|
28
|
+
commandPipelineRun.option('--schedule <date>', texts_1.OPTION_PIPELINE_RUN_DELAY);
|
|
29
29
|
commandPipelineRun.option('--action <actions...>', texts_1.OPTION_PIPELINE_RUN_ACTION);
|
|
30
30
|
commandPipelineRun.option('--wait', texts_1.OPTION_PIPELINE_RUN_WAIT);
|
|
31
31
|
commandPipelineRun.option('--wait-time <minutes>', texts_1.OPTION_PIPELINE_RUN_WAIT_TIMEOUT);
|
|
@@ -87,7 +87,7 @@ commandPipelineRun.action(async (identifier, options) => {
|
|
|
87
87
|
if (options.variableEncrypted) {
|
|
88
88
|
body.variables = body.variables.concat(input_1.default.pipelineRunVariable(options.variableEncrypted, true));
|
|
89
89
|
}
|
|
90
|
-
const delay = input_1.default.pipelineRunDelay(options.
|
|
90
|
+
const delay = input_1.default.pipelineRunDelay(options.schedule);
|
|
91
91
|
if (delay) {
|
|
92
92
|
body.delay_until = delay;
|
|
93
93
|
}
|
package/distTs/src/input.js
CHANGED
|
@@ -232,7 +232,7 @@ class Input {
|
|
|
232
232
|
output_1.default.exitError(texts_1.ERR_RUN_PIPELINE_WRONG_PRIORITY);
|
|
233
233
|
}
|
|
234
234
|
static pipelineRunAction(actions) {
|
|
235
|
-
if (!actions.length)
|
|
235
|
+
if (!actions || !actions.length)
|
|
236
236
|
return null;
|
|
237
237
|
const list = [];
|
|
238
238
|
actions.forEach((str) => {
|
package/distTs/src/texts.js
CHANGED
|
@@ -220,7 +220,7 @@ exports.DESC_COMMAND_TCP = 'Starts a tunnel which forwards all TCP traffic on a
|
|
|
220
220
|
exports.DESC_COMMAND_TLS = 'Starts a tunnel listening for TLS traffic on port 443 with a specific hostname.';
|
|
221
221
|
exports.DESC_PROGRAM = 'Buddy exposes local networked services behinds NATs and firewalls to the public internet over a secure tunnel. Share local websites, build/test webhook consumers, and self-host personal services.';
|
|
222
222
|
exports.DESC_COMMAND_PIPELINE = 'Commands to interact with the pipeline service';
|
|
223
|
-
exports.DESC_COMMAND_PIPELINE_RUN = 'Run pipeline.
|
|
223
|
+
exports.DESC_COMMAND_PIPELINE_RUN = 'Run pipeline. Required scopes: WORKSPACE, EXECUTION_RUN';
|
|
224
224
|
exports.DESC_COMMAND_VT = 'Commands to interact with the visual test service';
|
|
225
225
|
exports.DESC_COMMAND_VT_CLOSE = 'Close visual test session.';
|
|
226
226
|
exports.DESC_COMMAND_VT_STORYBOOK = 'Create visual test session from storybook';
|
|
@@ -290,8 +290,8 @@ exports.OPTION_PIPELINE_RUN_REFRESH = 'deploy from scratch';
|
|
|
290
290
|
exports.OPTION_PIPELINE_RUN_CLEAR_CACHE = 'clear cache before running the pipeline';
|
|
291
291
|
exports.OPTION_PIPELINE_RUN_PRIORITY = 'run priority. Can be one of "LOW", "NORMAL" or "HIGH". Default is "NORMAL"';
|
|
292
292
|
exports.OPTION_PIPELINE_RUN_VAR = 'variable key:value. Can be passed multiple times to pass multiple variables';
|
|
293
|
-
exports.OPTION_PIPELINE_RUN_DELAY = 'the date when the execution should be run. Should be set in the format: 2016-11-18T12:38:16.000Z';
|
|
294
|
-
exports.OPTION_PIPELINE_RUN_ARGUMENT = 'pipeline
|
|
293
|
+
exports.OPTION_PIPELINE_RUN_DELAY = 'the date when the execution should be run. Should be set in the format: 2016-11-18T12:38:16.000Z or 30s, 10m, 3h10m30s';
|
|
294
|
+
exports.OPTION_PIPELINE_RUN_ARGUMENT = 'human-readable ID of pipeline';
|
|
295
295
|
exports.OPTION_REST_API_TOKEN = 'personal access token. You can use env variable: BUDDY_TOKEN';
|
|
296
296
|
exports.OPTION_PIPELINE_RUN_ACTION = "action ID to be run in this execution. If not sent, it will be run in accordance with the pipeline's definition. Can be passed multiple times to select multiple actions";
|
|
297
297
|
exports.OPTION_PIPELINE_RUN_WAIT = 'wait for run to finish';
|