[Drone] "event":"tag","level":"info","msg":"trigger: skipping pipeline, does not match branch" #4879

Closed
opened 2025-11-02 06:05:56 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @everhopingandwaiting on GitHub (Feb 18, 2020).

  • Gitea version (or commit ref): 1.12.0+dev-325-ge76a64dda
  • Git version: latest
  • Operating system: gitea/gitea docker container
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

from gitea to publish a release , and the drone server could not trigger the tag event.

drone-server    | {"commit":"8069645f93dc130699f019fefe380f39e6380d0a","event":"tag","level":"info","msg":"trigger: skipping pipeline, does not match branch","pipeline":"default","ref":"refs/tags/v20","repo":"jyao/test","time":"2020-02-18T09:52:32Z"}
drone-server    | {"commit":"8069645f93dc130699f019fefe380f39e6380d0a","event":"tag","level":"info","msg":"trigger: skipping build, no matching pipelines","pipeline":"default","ref":"refs/tags/v20","repo":"jyao/test","time":"2020-02-18T09:52:32Z"}

...

.drone.yml

kind: pipeline
type: docker
name: default

steps:
  - name: test
    image: nginx
    detach: true
    commands:
    - echo hello
    - nginx -t
     
  - name: 微信推送
    image: appropriate/curl
    commands:
    - curl https://sc.ftqq.com/SCU2667T81a06b885fd4e8ad3e462bba35900ab16f370c.send?text=构建成功啦~
    
  - name: docker  
    image: plugins/docker
    settings:
      repo: everhopingandwaiting/test
      auto_tag: true
      auto_tag_suffix: test
      username: everh
      password: ${password}
    environment:
      username:
        from_secret: name
      password:
        from_secret: pwd
    when:
     event:
     - tag
     ref:
     - refs/tags/*
trigger:
  branch:
  - master
  event:
  - tag
  - published
  
---
kind: secret
name: pwd
get:
  path: docker/data/registry
  name: pwd
---
kind: secret
name: name
get:
  path: docker/data/registry
  name: username

Screenshots

image

Originally created by @everhopingandwaiting on GitHub (Feb 18, 2020). - Gitea version (or commit ref): 1.12.0+dev-325-ge76a64dda - Git version: latest - Operating system: gitea/gitea docker container - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description from gitea to publish a release , and the drone server could not trigger the tag event. ``` drone-server | {"commit":"8069645f93dc130699f019fefe380f39e6380d0a","event":"tag","level":"info","msg":"trigger: skipping pipeline, does not match branch","pipeline":"default","ref":"refs/tags/v20","repo":"jyao/test","time":"2020-02-18T09:52:32Z"} drone-server | {"commit":"8069645f93dc130699f019fefe380f39e6380d0a","event":"tag","level":"info","msg":"trigger: skipping build, no matching pipelines","pipeline":"default","ref":"refs/tags/v20","repo":"jyao/test","time":"2020-02-18T09:52:32Z"} ``` ... *.drone.yml* ``` kind: pipeline type: docker name: default steps: - name: test image: nginx detach: true commands: - echo hello - nginx -t - name: 微信推送 image: appropriate/curl commands: - curl https://sc.ftqq.com/SCU2667T81a06b885fd4e8ad3e462bba35900ab16f370c.send?text=构建成功啦~ - name: docker image: plugins/docker settings: repo: everhopingandwaiting/test auto_tag: true auto_tag_suffix: test username: everh password: ${password} environment: username: from_secret: name password: from_secret: pwd when: event: - tag ref: - refs/tags/* trigger: branch: - master event: - tag - published --- kind: secret name: pwd get: path: docker/data/registry name: pwd --- kind: secret name: name get: path: docker/data/registry name: username ``` ## Screenshots ![image](https://user-images.githubusercontent.com/6021724/74729146-ef28b200-527e-11ea-98fa-f1b407357d8d.png)
GiteaMirror added the type/question label 2025-11-02 06:05:56 -06:00
Author
Owner

@techknowlogick commented on GitHub (Feb 18, 2020):

Which version of Drone are you using?

@techknowlogick commented on GitHub (Feb 18, 2020): Which version of Drone are you using?
Author
Owner

@lafriks commented on GitHub (Feb 18, 2020):

Just remove:

ref:
     - refs/tags/*
@lafriks commented on GitHub (Feb 18, 2020): Just remove: ``` ref: - refs/tags/* ```
Author
Owner

@lafriks commented on GitHub (Feb 18, 2020):

Anyway this is drone issue most probably but I think this could be conflicting:

trigger:
  branch:
  - master
  event:
  - tag
  - published
@lafriks commented on GitHub (Feb 18, 2020): Anyway this is drone issue most probably but I think this could be conflicting: ``` trigger: branch: - master event: - tag - published ```
Author
Owner

@everhopingandwaiting commented on GitHub (Feb 19, 2020):

Which version of Drone are you using?
@techknowlogick
Drone version is the latest (1.6.5)

@everhopingandwaiting commented on GitHub (Feb 19, 2020): > Which version of Drone are you using? @techknowlogick Drone version is the latest (1.6.5)
Author
Owner

@everhopingandwaiting commented on GitHub (Feb 19, 2020):

@lafriks thank you
just remove other events ,it works

  - name: docker  
    image: plugins/docker
    settings:
      repo: ***/test
      auto_tag: true
      auto_tag_suffix: test
      username: ****
      password: ${password}
    environment:
      username:
        from_secret: name
      password:
        from_secret: pwd
trigger:
  event:
  - tag
  

Drone

test
ACTIVITY FEED
SETTINGS
#85. 更新 '.drone.yml'
avatar
jyao created tag v21
7 minutes ago

image

image
image

@everhopingandwaiting commented on GitHub (Feb 19, 2020): @lafriks thank you just remove other events ,it works ``` - name: docker image: plugins/docker settings: repo: ***/test auto_tag: true auto_tag_suffix: test username: **** password: ${password} environment: username: from_secret: name password: from_secret: pwd trigger: event: - tag ``` `Drone` ``` test ACTIVITY FEED SETTINGS #85. 更新 '.drone.yml' avatar jyao created tag v21 7 minutes ago ``` ![image](https://user-images.githubusercontent.com/6021724/74790289-1ec4d200-52f2-11ea-9fb6-d98b16df673b.png) ![image](https://user-images.githubusercontent.com/6021724/74790268-0f458900-52f2-11ea-8d3e-7a55e4a6d0d4.png) ![image](https://user-images.githubusercontent.com/6021724/74790576-effb2b80-52f2-11ea-90ab-f65f79e0976b.png)
Author
Owner

@techknowlogick commented on GitHub (Feb 19, 2020):

Glad that worked :)

Closing this ticket now.

@techknowlogick commented on GitHub (Feb 19, 2020): Glad that worked :) Closing this ticket now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4879