Or maybe move what you have in the file, into Jenkinsfile? Making use of "script" feature. (Hopefully I am not misunderstanding the script feature.)
pipeline { agent any stages { stage ('...') { steps { script { ... } } } ... -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/03697a9d-3db8-4cd0-9ab5-59089d17a753%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.