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

ordinal not optional

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • - DEV@cloud (cloudbees)
      - Jenkins 2.73.2.1
      - pipeline-milestone-step-plugin 1.3.1

      The documentation clearly says the 'ordinal' is optional, but executing this pipeline:

      pipeline {
        agent any
        stages {
          stage ('step 1') {
            steps {
              milestone()
              echo "hello 2"
            }
          }
          stage ('step 2') {
            steps {
              milestone()
              echo "hello 2"
            }
          }
        }
      }
      

       

      I get the following exception

       

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 8: Missing required parameter: "ordinal" @ line 8, column 9.
      milestone()
      ^
      WorkflowScript: 14: Missing required parameter: "ordinal" @ line 14, column 9.
      milestone()

            amuniz Antonio Muñiz
            imod Dominik Bartholdi
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: