Skip to content

Commit 638ca25

Browse files
committed
v 0.0.11 - add more flags
1 parent 532d225 commit 638ca25

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

bitrise.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ app:
55
envs:
66
# If you want to share this step into a StepLib
77
- BITRISE_STEP_ID: device-cloud-for-maestro
8-
- BITRISE_STEP_VERSION: "0.0.10"
8+
- BITRISE_STEP_VERSION: "0.0.11"
99
- BITRISE_STEP_GIT_CLONE_URL: https://github.com/devicecloud-dev/bitrise-integration.git
1010
- MY_STEPLIB_REPO_FORK_GIT_URL: [email protected]:devicecloud-dev/bitrise-integration.git
1111

step.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ DCD_VERSION="@devicecloud.dev/dcd@>=3.3.6"
2121
[[ "$x86_arch" == "true" ]] && is_x86_arch="true"
2222
[[ "$ignore_sha_check" == "true" ]] && is_ignore_sha_check="true"
2323
[[ "$skip_chrome_onboarding" == "true" ]] && is_skip_chrome_onboarding="true"
24+
[[ "$debug" == "true" ]] && is_debug="true"
25+
[[ "$json" == "true" ]] && is_json="true"
26+
[[ "$json_file" == "true" ]] && is_json_file="true"
2427
# Change to source directory
2528
cd $BITRISE_SOURCE_DIR
2629

@@ -56,6 +59,11 @@ echo "report: $report"
5659
echo "ignore_sha_check: $ignore_sha_check"
5760
echo "skip_chrome_onboarding: $skip_chrome_onboarding"
5861
echo "runner_type: $runner_type"
62+
echo "is_debug: $is_debug"
63+
echo "is_json: $is_json"
64+
echo "is_json_file: $is_json_file"
65+
echo "config: $config"
66+
echo "artifacts_path: $artifacts_path"
5967

6068
echo "Running command: npx --yes \"$DCD_VERSION\" cloud --quiet \
6169
--apiKey \"$api_key\" \
@@ -83,6 +91,11 @@ ${report:+--report "$report"} \
8391
${is_ignore_sha_check:+--ignore-sha-check} \
8492
${is_skip_chrome_onboarding:+--skip-chrome-onboarding} \
8593
${runner_type:+--runner-type "$runner_type"} \
94+
${is_debug:+--debug} \
95+
${is_json:+--json} \
96+
${is_json_file:+--json-file} \
97+
${config:+--config "$config"} \
98+
${artifacts_path:+--artifacts-path "$artifacts_path"} \
8699
\"$app_file\" \"$workspace\""
87100

88101
# Capture the command output and display it
@@ -114,6 +127,11 @@ ${report:+--report "$report"} \
114127
${is_ignore_sha_check:+--ignore-sha-check} \
115128
${is_skip_chrome_onboarding:+--skip-chrome-onboarding} \
116129
${runner_type:+--runner-type "$runner_type"} \
130+
${is_debug:+--debug} \
131+
${is_json:+--json} \
132+
${is_json_file:+--json-file} \
133+
${config:+--config "$config"} \
134+
${artifacts_path:+--artifacts-path "$artifacts_path"} \
117135
"$app_file" "$workspace" 2>&1) || EXIT_CODE=$?
118136
echo "$OUTPUT"
119137

step.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,53 @@ inputs:
258258
is_expand: true
259259
is_required: false
260260

261+
- debug: "false"
262+
opts:
263+
title: "Debug Mode"
264+
summary: "Enable detailed debug logging for troubleshooting issues"
265+
is_expand: true
266+
is_required: false
267+
default_value: "false"
268+
value_options:
269+
- "true"
270+
- "false"
271+
272+
- json: "false"
273+
opts:
274+
title: "JSON Output"
275+
summary: "Output results in JSON format - note: will always provide exit code 0"
276+
is_expand: true
277+
is_required: false
278+
default_value: "false"
279+
value_options:
280+
- "true"
281+
- "false"
282+
283+
- json_file: "false"
284+
opts:
285+
title: "JSON File Output"
286+
summary: "Write JSON output to a file with name <run_name>_dcd.json or <upload_id>_dcd.json if no name is provided"
287+
is_expand: true
288+
is_required: false
289+
default_value: "false"
290+
value_options:
291+
- "true"
292+
- "false"
293+
294+
- config: ""
295+
opts:
296+
title: "Config File"
297+
summary: "Path to custom config.yaml file. If not provided, defaults to config.yaml in root flows folders."
298+
is_expand: true
299+
is_required: false
300+
301+
- artifacts_path: ""
302+
opts:
303+
title: "Artifacts Path"
304+
summary: "Custom file path for downloaded artifacts (default: ./artifacts.zip)"
305+
is_expand: true
306+
is_required: false
307+
261308
outputs:
262309
- DEVICE_CLOUD_CONSOLE_URL:
263310
opts:

0 commit comments

Comments
 (0)