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

Webhook push data too long, caused pipeline git pull errror. it tips that Argument list too long.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • git-plugin
    • IMAGE:jenkins/jenkins:2.336,Git:4.11.5,Generic Webhook Trigger Plugin:1.84,CentOS Linux release 7.4.1708 (Core)

      Complete environment version information:

      full-env-version-info.txt

       

      Problem description:

      Webhook push data too long, caused pipeline git pull errror. it tips that Argument list too long.

      At present, on the gitlab hook, the length of the message text pushed is 1,301,714. The hook can normally trigger the operation of the pipeline. However, when the user-defined shared library code is pulled in the first step, the pull fails. The exception message is caused by: java.io IOException: error=7, Argument list too long.

      I infer that the message data pushed by webhook was passed into the GIT command as a parameter, resulting in the execution of the GIT command exceeding the page limit of the Linux command line parameter (MAX_ARG_PAGES).

      If I use a small gitlab text hook data, such as 1000 in length, GIT pull will pull the shared library code successfully.

      The pipeline log (consoleText.txt) that I have uploaded to the attachment.

       

      Problem Recurrence Procedure:

      The first step. Create a new pipeline (not multi-branched) and use Git to pull up the Jenkinfile file.

      And the Jenkinsfile file uses this service-biz-ebank.jenkinsfile . This uses the Jenkins shared Library @library (['jenkinslib-tools@master']) _

      The second step. Use Postman for debugging. The POST interface of the hook with large text has been exported. And modify the appropriate token for push debugging.

      And the postman file uses this Jenkins webhook git Argument list too long.postman_collection.json . Import the file to Postman and use it

      The third step. 使用postman工具推送后,就会出现以下日志的错误:java.io IOException: error=7, Argument list too long.

      If you replace the text data in the Body with this smaller data packet: smaller text data.json, The pipeline pulls the Jenkins shared Library @library (['jenkinslib-tools@master']) _ successfully. And the pipeline is also running normally, no abnormalities reported

       

      Pipeline complete log:

      consoleText.txt

      Key Log screenshots:

      Webhook data size:

      16615721599321.png

       

            Unassigned Unassigned
            13060851331 Johnny Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: