# Repeat execution and Some pipelines are lost

**URL:** <https://drone.discourse.group/t/repeat-execution-and-some-pipelines-are-lost/11490>\
**Category:** Drone Support\
**Created:** [July 2, 2020, 8:54am UTC](https://drone.discourse.group/t/repeat-execution-and-some-pipelines-are-lost/11490 "2020-07-02T08:54:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [July 2, 2020, 12:29pm UTC](https://drone.discourse.group/t/repeat-execution-and-some-pipelines-are-lost/11490/3 "2020-07-02T12:29:52Z")

</div>

> [@"drone exec" does not support global pipeline variables](https://drone.discourse.group/t/drone-exec-does-not-support-global-pipeline-variables/7608/1):
>
> bug1: repeat execution. Update once with gitea edit will execute twice.

Drone executes a pipeline for each webhook it receives from Gitea. If Drone executes multiple builds it means Gitea sent multiple webhooks. Make sure only a single webhook is registered for your repository int he Gitea settings. If you continue to receive multiple webhooks from Gitea, please raise this issue with the Gitea community.

> [@"drone exec" does not support global pipeline variables](https://drone.discourse.group/t/drone-exec-does-not-support-global-pipeline-variables/7608/1):
>
> bug2: Multiple steps, only the first pipeline works, others are missing

This is not a bug, your yaml is malformed and has the `steps` block defined multiple times. Please correct your yaml as demonstrated in the below diff:

```diff
steps:
  - name: 代码review通知
    image: alpine
    commands:
    - echo "代码review通知"
- steps:
  - name: 构建镜像
    image: alpine
    commands:
    - echo "构建镜像"
- steps:
  - name: 镜像安全检查
    image: alpine
    commands:
    - echo "镜像安全检查"

```

---

_[View the full topic](https://drone.discourse.group/t/repeat-execution-and-some-pipelines-are-lost/11490)._
