webhook filtering issues

We have a problem triggered by webhook, when the development push to gitlab, trigger jenkins build, jenkins build will pull the code and run a script, when the script is finished, will generate a file, will automatically push this file to gitlab, this time will trigger another jenkins build. This is equivalent to running the jenkins pipeline twice after the development push. How to make the pipeline run only the time of the development push?