Slightly strange request perhaps. I have a scripted pipeline job which which pulling Red Hat RPM files from various places and packaging them up into signed yum repos, which it then tars up ready for sending across to an air-gapped system.
We also have a bunch of Ansible code, which is checked into a gitlab repo (and tagged with the release version we're using).
What I'd like to do from within my code is to "git clone" my repo, and then "git pull v1.1" (for example), but when I try that from the Jenkins slave console it just says `Initialized empty Git repository in /var/lib/Jenkins/` for the clone, and the pull times out with a 500 gateway error.
I'm looking at the gitlab plugin to see if that will give me what I need, but that seems to be more about triggering builds based on checkin, which I don't need.
I'm getting in a muddle, has anyone done something similar?