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

Created on 18 Feb 2020  ·  6Comments  ·  Source: go-gitea/gitea

  • 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

kinquestion

All 6 comments

Which version of Drone are you using?

Just remove:

ref:
     - refs/tags/*

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

trigger:
  branch:
  - master
  event:
  - tag
  - published

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

@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

Glad that worked :)

Closing this ticket now.

Was this page helpful?
0 / 5 - 0 ratings