• Icon: Task Task
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline
    • None
    • Jenkins 2.346.2

      please add support for do while loop in pipeline groovy

       

      https://groovy-lang.org/semantics.html#_do_while_loop

       

      job log:
      12:55:04 /var/jenkins_home/jobs/proj/branches/master/builds/63/libs/6a89b87104972e6c641369c075a904f856a1fb12635b653f221d4556b018fffe/vars/kubeLib.groovy: 18: unexpected token: do @ line 18, column 3.12:55:04 do {12:55:04 ^12:55:04 12:55:04 1 error

          [JENKINS-69120] support do while loop in pipeline groovy

          Kalle Niemitalo added a comment - do/while loop is documented in http://docs.groovy-lang.org/docs/groovy-3.0.0/html/documentation/#_do_while_loop but not in http://docs.groovy-lang.org/docs/groovy-2.4.21/html/documentation/#_looping_structures . Jenkins is still using Groovy 2.4.21: https://github.com/jenkinsci/jenkins/blob/4428582480a30ab9582d85eedb157a89d3cc6b89/bom/pom.xml#L44 . JENKINS-51823 requests upgrading Groovy to 3.0.x. I think this issue is a duplicate of that, then.

          dor s added a comment -

          Thank you kon for your answer, I'll close it

           

           

           

          dor s added a comment - Thank you kon for your answer, I'll close it      

            Unassigned Unassigned
            dordor dor s
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: