We’ll start by defining a few environment variables. The reason behind declaring those variables is that we want to have a single place where critical information is stored. That way, when something changes (example:entry point to the cluster) we can modify a variable or two, and the changes will be propagated throughout all jobs.
Off we go. First, we need to open Jenkins global configuration screen:
open "http://$(docker-machine ip swarm-1):8082/jenkins/configure"
A note to Windows users:
Git Bash might not be able to use the open command. If that's the case, execute docker-machine ip <SERVER_NAME> to find out the IP of the machine and open the URL directly in your browser of choice. For example, the command above should be replaced with the command that follows:
docker-machine ip swarm-1 If the output would be 1.2.3.4, you should open http:...
Git Bash might not be able to use the open command. If that's the case, execute docker-machine ip <SERVER_NAME> to find out the IP of the machine and open the URL directly in your browser of choice. For example, the command above should be replaced with the command that follows:
docker-machine ip swarm-1 If the output would be 1.2.3.4, you should open http:...