Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACS-6300 Add a static-name flag for reportportal-prepare action #386

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a9bcf95
ACS-6300 Extend report-portal prepare with rp-static-name flag
wojtekswieton Nov 23, 2023
3eeb5ab
ACS-6300 Add to README info about rp-static-name flag
wojtekswieton Nov 23, 2023
b13cf8f
Merge branch 'master' into feature/ACS-6300_Prepeare_Report_Portal_St…
wojtekswieton Nov 23, 2023
26d6d39
Update .github/actions/reportportal-prepare/action.yml
wojtekswieton Nov 23, 2023
49cade2
Update .github/actions/reportportal-prepare/action.yml
wojtekswieton Nov 23, 2023
c0b193d
Update .github/actions/reportportal-prepare/action.yml
wojtekswieton Nov 23, 2023
0f3597a
Update .github/actions/reportportal-prepare/get-rp-input.sh
wojtekswieton Nov 23, 2023
9e7be04
ACS-6300 Update in README.md
wojtekswieton Nov 23, 2023
3ac1244
Update docs/README.md
wojtekswieton Nov 23, 2023
7fd6659
ACS-6300 Update in README.md
wojtekswieton Nov 23, 2023
38806a8
Update .github/actions/reportportal-prepare/action.yml
wojtekswieton Nov 23, 2023
1b530ec
Update .github/actions/reportportal-prepare/action.yml
wojtekswieton Nov 23, 2023
2ac2c91
Update .github/actions/reportportal-prepare/get-rp-input.sh
wojtekswieton Nov 23, 2023
249d338
Update docs/README.md
wojtekswieton Nov 23, 2023
a067ae0
ACS-6300 Check tests update
wojtekswieton Nov 23, 2023
cc28eb4
Merge remote-tracking branch 'origin/feature/ACS-6300_Prepeare_Report…
wojtekswieton Nov 23, 2023
198b43d
ACS-6300 Check tests update
wojtekswieton Nov 23, 2023
3553d9c
ACS-6300 Check tests update
wojtekswieton Nov 23, 2023
b760375
ACS-6300 Bump version
wojtekswieton Nov 23, 2023
e8bf141
add test for static launch key
atchertchian Nov 23, 2023
ea348a7
fix summarize when using static launch key
atchertchian Nov 23, 2023
e4722c6
support spaces on launch key
atchertchian Nov 25, 2023
9abae23
ACS-6300 Bump version
wojtekswieton Nov 26, 2023
839ff46
Merge branch 'master' into feature/ACS-6300_Prepeare_Report_Portal_St…
wojtekswieton Nov 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/reportportal-prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ inputs:
rp-extra-attributes:
description: Extra attributes for Report Portal
required: false
rp-static-name:
wojtekswieton marked this conversation as resolved.
Show resolved Hide resolved
description: >-
If set, it uses RP_LAUNCH_PREFIX as RP_LAUNCH_KEY.
wojtekswieton marked this conversation as resolved.
Show resolved Hide resolved
required: false
default: "false"
auto-configure:
description: >-
Enables automated default configuration (adds default GitHub context
Expand Down Expand Up @@ -54,4 +59,5 @@ runs:
RP_PROJECT: ${{ inputs.rp-project }}
RP_EXTRA_ATTRIBUTES: ${{ inputs.rp-extra-attributes }}
AUTO: ${{ inputs.auto-configure }}
STATIC: ${{ inputs.rp-static-name }}
wojtekswieton marked this conversation as resolved.
Show resolved Hide resolved
run: ${{ github.action_path }}/get-rp-input.sh
2 changes: 1 addition & 1 deletion .github/actions/reportportal-prepare/get-rp-input.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [[ -n "$RP_LAUNCH_PREFIX" && -n "$RP_TOKEN" && -n "$RP_URL" && -n "$RP_PROJEC
echo "enabled=true" >> $GITHUB_OUTPUT

RP_LAUNCH_KEY="$RP_LAUNCH_PREFIX"
if [[ "$AUTO" == "true" ]]; then
if [[ "$AUTO" == "true" && "$STATIC" == "false" ]]; then
wojtekswieton marked this conversation as resolved.
Show resolved Hide resolved
RP_LAUNCH_KEY="$RP_LAUNCH_PREFIX-$GITHUB_EVENT_NAME-$GITHUB_RUN_ID"
fi
echo "key=$RP_LAUNCH_KEY" >> $GITHUB_OUTPUT
Expand Down
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,9 @@ This action is usually used in combination with [reportportal-summarize](#report
In particular, this prepares maven command line options for Report Portal integration, building the endpoint, authentication, launch key, description.
Default context information is also added (launch attributes), unless the `auto-configure` input is set to `false`.

By using the `rp-static-name` flag, you can determine whether 'LAUNCH_NAME' should be static or unique for each execution. By default, it is set to `false`.
Setting it to `true` means that the value from 'RP_LAUNCH_KEY' will be used as 'LAUNCH_NAME.' However, this configuration won't work with [reportportal-summarize](#reportportal-summarize).

Sample options with auto-configuration:

```bash
Expand Down
Loading