title: use git repo name as ENV variable in jenkins job
body: <p>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?</p>
  
  <p>maybe something like <code>${GIT_REPO_NAME}</code></p>
  
  <p>I know that there is <code>${GIT_REPO_URL}</code> and it includes the project name, but I need to be able to use this in the local sub directory field. </p>
  
  <p>if someone has a better solution for this I am all ears.</p>
  
  <p>thank you!</p>