Make Set Variable From Shell
$(eval GID=$(shell docker exec jenkins-slave ls -n /var/run/docker.sock | cut -f 4 -d ' '))
echo $(GID)
docker exec jenkins-slave groupadd -g $(GID) docker
$(eval GID=$(shell docker exec jenkins-slave ls -n /var/run/docker.sock | cut -f 4 -d ' '))
echo $(GID)
docker exec jenkins-slave groupadd -g $(GID) docker