e2e test with Jenkins, selenium-grid and protractor
You need to directConnect: false,
so it will use the selenium server through seleniumAddress: 'http://HUB_IP:4444/wd/hub',
and given you are on Jenkins, probably in headless mode I recommend you to use docker-selenium
Start the local grid
CONTAINER_ID="grid_$BUILD_NUMBER"docker run -d --name=$CONTAINER_ID -v /dev/shm:/dev/shm elgalu/selenium
Wait for it to start
docker exec $CONTAINER_ID wait_all_done 40s
Grab the IP
export HUB_IP=$(docker inspect -f='{{.NetworkSettings.IPAddress}}' $CONTAINER_ID)
Run your tests
protractor testApp/protractor.conf.js