I've got a task to setup a Jenkins pipeline that has to push images to a docker registry placed in another network. So I need to be able to establish a VPN connection. I stumbled upon Jenkins Openconnect plugin which is not supported (?) any more and had been removed from Jenkins' plugin repo. I've built the plugin and successfully install it using *.hpi file but I can't find neither documentation nor settings in order to understand how to use it. I use a scripted pipeline and I think I will need to write code like this:
withOpenConnect(["host=8.8.8.8", "login=username", "password=pass"]){
pushDockerImages()
}
I saw this answer but can't quite understand how to apply it in my case.
Maybe there is another way to deploy artifacts to another network nowadays and this plugin is just not compatible at all?