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

Snippet Generator fails with Gitlab repository Version

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • git-plugin
    • Jenkins ver. 2.46.3
      Pipeline ver. 2.5
      Git plugin ver. 3.5.1
    • git plugin 4.0.0

    Description

      How to reproduce: In snippet generator choose 'checkout: general SCM', in SCM choose Git, put 'gitlab' in 'repository browser' and a number in a 'Version' field.

      If string is put in 'Version' the error is printed: Can't convert ''8.0'' to a number: For input string: "'8.0'"

      If number is put in 'Version', e.g. 8.0, the following error occurs during pipeline execution:
      java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.math.BigDecimal

      Attachments

        Issue Links

          Activity

            nimrod Kasia Gauza created issue -
            nimrod Kasia Gauza made changes -
            Field Original Value New Value
            Epic Link JENKINS-35393 [ 171186 ]
            abayer Andrew Bayer made changes -
            Component/s gitlab-plugin [ 19326 ]
            Component/s pipeline [ 21692 ]
            Component/s workflow-cps-plugin [ 21713 ]
            Component/s workflow-step-api-plugin [ 21718 ]
            owenmehegan Owen Mehegan made changes -
            Component/s git-plugin [ 15543 ]
            Component/s gitlab-plugin [ 19326 ]
            owenmehegan Owen Mehegan made changes -
            Assignee Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            reinholdfuereder Reinhold Füreder made changes -
            Link This issue is related to JENKINS-49215 [ JENKINS-49215 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-49215 [ JENKINS-49215 ]
            markewaite Mark Waite made changes -
            Released As git plugin 4.0.0
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]

            People

              Unassigned Unassigned
              nimrod Kasia Gauza
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: