title: Jenkins: "Execute system groovy script" in a pipeline step (SCM committed)
body: <p>Is there a way to use the Jenkins "Execute system groovy script" step from a pipeline file which is SCM commited ?</p>
  
  <p>If yes, how would I access the predefined variables (like build) in it ?</p>
  
  <p>If no, would I be able to replicate the functionality otherwise, using for example the Shared Library Plugin ?</p>
  
  <p>Thanks !</p>