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

Jenkins Build trigger abuse variables as git rev-parse option.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Component/s: git-client-plugin
    • Labels:
      None
    • Environment:
      Distributor ID: Centos7.3

      GIT 2.19.1
      GIT client plugin 1.17.1
      Jenkins 1.617
    • Similar Issues:

      Description

      I'm useing Jenkins and it's build trigger with GItlabCI webhook. When I post a MR to the repo, jenkins fails like attachment-1. But when I rebuild it by hand, it successed like attachment-3. I just found that Jenkins fails at git, because it abuse an parameter like attachment-2 as git repo url. My configure is like attachment-4, which have multiple git repos to clone while one of them is listened by the Build trigger. Build trigger configure is like attachment-5.

       

      Is it a bug? How can I fix It?

        Attachments

        1. 1_20181220175552.png
          1_20181220175552.png
          72 kB
        2. 2_20181220175559.png
          2_20181220175559.png
          42 kB
        3. 3_20181220175604.png
          3_20181220175604.png
          47 kB
        4. 4_20181220180745.png
          4_20181220180745.png
          172 kB
        5. 5_20181220181102.png
          5_20181220181102.png
          181 kB

          Activity

          Hide
          markewaite Mark Waite added a comment -

          Can you configure the Gitlab webhook to not send the merge request SHA1 to Jenkins? If so, that might resolve the issue.

          Show
          markewaite Mark Waite added a comment - Can you configure the Gitlab webhook to not send the merge request SHA1 to Jenkins? If so, that might resolve the issue.
          Hide
          wangfrank frank wang added a comment -

          Mark Waite Thanks for your advice. I tried, and it works. 

          Show
          wangfrank frank wang added a comment - Mark Waite Thanks for your advice. I tried, and it works. 

            People

            • Assignee:
              markewaite Mark Waite
              Reporter:
              wangfrank frank wang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: