Jenkins: "Execute system groovy script" in a pipeline step (SCM committed)

Viewed 10012

Is there a way to use the Jenkins "Execute system groovy script" step from a pipeline file which is SCM commited ?

If yes, how would I access the predefined variables (like build) in it ?

If no, would I be able to replicate the functionality otherwise, using for example the Shared Library Plugin ?

Thanks !

1 Answers
Related