Deploy with Jenkins to VPN

杀马特。学长 韩版系。学妹 提交于 2019-12-01 18:39:42

问题


My general goal is to automate deployment to a server in a VPN. Currently the VPNs are Cisco AnyConnect and Barracuda, but a more universal solution would be nice.

I thought about using Jenkins, but the only relevant resource that I found is this plugin https://wiki.jenkins-ci.org/display/JENKINS/OpenConnect+Plugin , which might solve the problem for AnyConnect but not for Barracuda.

I woud prefer Jenkins but I am opened for any other free tool that is better suited for this job.


回答1:


On linux (debian based)

sudo apt-get install openconnect

Add the following lines to the bottom of /etc/sudoers (ubuntu configuration)

jenkins ALL=NOPASSWD:/usr/sbin/openconnect*
jenkins ALL=NOPASSWD:/bin/kill*

The you will get an option in the Jenkins run task called:

Connect to Cisco AnyConnect VPN


来源:https://stackoverflow.com/questions/35151072/deploy-with-jenkins-to-vpn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!