I am trying to figure out a way to get the remote git project name in a jenkins job as a env variable. I would like to use the project name as the "local subdirectory name" when jenkins clones the repo. is there a way to do this?
maybe something like ${GIT_REPO_NAME}
I know that there is ${GIT_REPO_URL}
and it includes the project name, but I need to be able to use this in the local sub directory field.
if someone has a better solution for this I am all ears.
thank you!