Is it possible to use WSL2 as an agent for Jenkins installed in Windows 10 x64?
As long as you can SSH to your WSL2 instance, using for instance Scott Hanselman's script described in his blog post, that means your Jenkins main controller can contact the WSL2 instance through SSH.
The alternative would be to use an agent with Docker.
Both methods are described in Jenkins documentation Using agents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With