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

Expand connection plugins used in CI #148

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 5 additions & 3 deletions .azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ stages:
nameFormat: Server {0}
testFormat: devel/windows/{0}
targets:
- test: 2016
- test: 2019
- test: 2022
- test: 2016/winrm/http
- test: 2019/winrm/https
- test: 2022/winrm/https
- test: 2022/psrp/https
- test: 2022/ssh/key
groups:
- 1
- stage: Summary
Expand Down
10 changes: 7 additions & 3 deletions tests/utils/shippable/windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ declare -a args
IFS='/:' read -ra args <<< "$1"

version="${args[1]}"
connection="${args[2]}"
connection_setting="${args[3]}"

if [ "${#args[0]}" -gt 2 ]; then
target="shippable/windows/group${args[2]}/"
if [ "${#args[0]}" -gt 4 ]; then
target="shippable/windows/group${args[4]}/"
else
target="shippable/windows/"
fi
Expand All @@ -18,4 +20,6 @@ provider="${P:-default}"

# shellcheck disable=SC2086
ansible-test windows-integration --color -v --retry-on-error "${target}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} ${UNSTABLE:+"$UNSTABLE"} \
--windows "${version}" --docker default --remote-terminate always --remote-stage "${stage}" --remote-provider "${provider}"
--controller "docker:default" \
--target "remote:windows/${version},connection=${connection}+${connection_setting},provider=${provider}" \
--remote-terminate always --remote-stage "${stage}"
Loading