title: String functions in the jenkins pipeline
body: <p>So I have a jenkins pipeline which works fine. However I added the following lines of code to the groovy script and the build fails:</p>
  
  <pre><code>def gitTemp = env.GIT_URL
  def indexOfCom = gitTemp.indexOf('com',0) 
  def gitShort = gitTemp.substring(indexOfCom)
  </code></pre>