Adding a bit more detail, the problem is that the deployed jenkins agents actually never join Jenkins to be available for jobs. Jenkins reports them as disconnected.
The steps to reproduce are:
1. Run on Ubuntu 22.04 with an lxd controller
2. Create a model and deploy jenkins: juju deploy jenkins
3. Deploy jenkins agent: juju deploy -n 2 jenkins-slave
4. Relate jenkins and jenkins agent: juju add-relation jenkins jenkins-slave
Also check the web interface and make sure the port for jenkins agents is enabled.
Adding a bit more detail, the problem is that the deployed jenkins agents actually never join Jenkins to be available for jobs. Jenkins reports them as disconnected.
The steps to reproduce are:
1. Run on Ubuntu 22.04 with an lxd controller
2. Create a model and deploy jenkins: juju deploy jenkins
3. Deploy jenkins agent: juju deploy -n 2 jenkins-slave
4. Relate jenkins and jenkins agent: juju add-relation jenkins jenkins-slave
Also check the web interface and make sure the port for jenkins agents is enabled.