0

I'm writing a Jenkins Build Flow Plugin script and would like to access the filename from within the script itself (so that if the file is renamed, the script content won't have to change). How can this be done?

Noel Yap
  • 18,822
  • 21
  • 92
  • 144

1 Answers1

0

The following works when using the Jenkins Build Flow Plugin:

build.dslFile

It's a private field, though, so there's no guarantee it will work with all versions of the plugin.

Noel Yap
  • 18,822
  • 21
  • 92
  • 144