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

Jenkins executes custom declarative pipeline step even though call signature is wrong without error

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • pipeline
    • None

       

      vars/customStep.groovy

      def call(a, b) {
          echo "a: $a"
          echo "b: $b"
      }

       

       

      Pipeline:

       

      customStep(a: "param1", b: "param2")

       

      Jenkins executes the pipeline with "success". customStep is not executed though.

      I have come to understand that I would need to define call to have a single Map parameter for this to work.

       

      The problem is that executes this "step" without error. It simply swallows the error and merrily continues with the next steps. This makes pipelines unreliable as steps can apparently be invalid and quietly be ignored.

       

          [JENKINS-44059] Jenkins executes custom declarative pipeline step even though call signature is wrong without error

          There are no comments yet on this issue.

            Unassigned Unassigned
            vqrs Christian V
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: