Are we able to define a method in declarative Jenkinsfile(which will be a part of our source code) and call it in shared library

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I want to specify a method in jenkinsfile, which will be part of my source code and I want to call that method at any specific stage in Shared-library. Is there anyway, we could do that in case of "declarative pipelines" .

                                     Can I create a method inside the build pipeline shown in below attachment

            Assignee:
            Andrew Bayer
            Reporter:
            Srinath Palasani
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: