I'm trying to get my tests running in Jenkins. I have Dockerized my test runner code, and am using the Dockerized Selenium hub/grid. I can run everything fine locally on my machine and would like to do the same on a Jenkins server. All the containers are started using the docker shell commands, and they are all put on the same Docker network so they can communicate. Again, everything works fine locally, but when I try this on the Jenkins machine I get an error message saying:
Error forwarding the new session cannot find : Capabilities [{rotatable=false, ...
Since the exact same commands work locally the only reason I can think of why this fails is because the containers must be unable to communicate on the Jenkins machine. Perhaps they are started on another node or slave, I'm not sure. Does anyone have experience running multiple containers on a Jenkins machine? Or does anyone have any other ideas of why this is failing?