How do I configure Jenkins to strip the leading "origin/" in git branch parameter?
I usually use a groovy script evaluated before the job, like:
def map = [:]map['GIT_BRANCH'] = GIT_BRANCH - 'origin/'return map
This is using the EnvInject plugin, as described in gitlab-plugin issue 444