Detailed description from above closed pull request:
> This PR introduces `-TestsDebug` parameter to build.ps1.
>
> With it we can use `-TestsDebug` parameter or `$env:TESTS_DEBUG` to improve Windows tests debugging:
> - As it can be passed in the Jenkinsfile, it's easy now to activate it on a build replay instead of having to add a commit to switch debug on or off.
> - This parameter can take the following values:
> - empty/undefined: no additional debug (default value).
> - `debug`: output every test command and stderr on top of every test. (Equivalent of setting `$quiet=$true` in the test_helpers "Run-Program" function currently)
> - `verbose`: same as `debug` + output of stdout.
>
> Output (from docker-ssh-agent pull request):
>
>
> With `.\build.ps1 test -TestsDebug 'debug'`:
>
>
> With `.\build.ps1 test -TestsDebug 'verbose'`:
>
>
>
This PR aligns this repository with what have been implemented in https://github.com/jenkinsci/docker-ssh-agent/pull/415, all extracted changes mentioned in https://github.com/jenkinsci/docker-ssh-agent/pull/415#issuecomment-2169547751 and additional cleanup permitted by this change.
List of commits, notes and references to docker-ssh-agent issues and pull requests
chore: define jdks to build at a single place in docker bake (974969e)
jdk
in "debian" bake target name for consistencychore: add
TestsDebug
parameter (22934df)Detailed description from above closed pull request:
> This PR introduces `-TestsDebug` parameter to build.ps1. > > With it we can use `-TestsDebug` parameter or `$env:TESTS_DEBUG` to improve Windows tests debugging: > - As it can be passed in the Jenkinsfile, it's easy now to activate it on a build replay instead of having to add a commit to switch debug on or off. > - This parameter can take the following values: > - empty/undefined: no additional debug (default value). > - `debug`: output every test command and stderr on top of every test. (Equivalent of setting `$quiet=$true` in the test_helpers "Run-Program" function currently) > - `verbose`: same as `debug` + output of stdout. > >
Output (from docker-ssh-agent pull request):
>> > With `.\build.ps1 test -TestsDebug 'debug'`: > > > With `.\build.ps1 test -TestsDebug 'verbose'`: > > >
chore: lint *.ps1 (19cce30)
if
schore: add log output to Windows tests (57d5a57)
fix: implement
docker
calls asmake
targets (f96d882)chore: shortens
agentSelector
comments (af17f85)fix: remove interpolation in last sh and powershell calls (f48ef34)
chore: set bats formatter to junit (2bc7774)
bats
output to junitchore: use docker bake to generate docker compose file (4cc014e)
windowsagenttypes
bake function to take care of the agent type ("agent" or "inbound-agent")windowsversiondigest
bake function to take care of https://github.com/jenkinsci/docker-agent/pull/816~ (Removed in 1086ab17e1f9d0528314e8f10972963ede483e5e as follow-up of #833)chore: get rid of build.sh and env.props (52b4455)
doc: adapt docker-ssh-agent's 'building' section to this repository (affb8e4)
(Docker images content remains untouched hence the "chore" label.)
Testing done
CI
Submitter checklist