Allow to use Jenkins CLI through SSH:
Description
Description
Revisions and Commits
Revisions and Commits
rOPS Nasqueron Operations | |||
D2699 | rOPS7fac51c7a26f Provide jenkins wrapper |
Event Timeline
Comment Actions
jenkins CLI wrapper (proof of concept)
#!/bin/sh # # Usage: jenkins <container name> <command> [args] CONTAINER_IP=$(sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $1) shift ssh -l $USER -p 50022 $CONTAINER_IP $*