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

return keyword in dir command block return only from block instead of function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • _unsorted
    • None

      def myfunc() {

         dir("mydir")

      {      return 10    }

        echo "this is executed anyway"

      }

       

            Unassigned Unassigned
            guerk Guerkan Demirci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: