Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52022

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

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

            abayer Andrew Bayer
            srinath45 Srinath Palasani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: