gitness icon indicating copy to clipboard operation
gitness copied to clipboard

In the drone project, the build function is triggered based on a certain directory in the project.

Open hehua2018 opened this issue 1 year ago • 1 comments

There is a build function in the drone project that triggers the build based on a certain directory in the project. If there is no such function, can you provide a trigger development document? If the class is updated in the hexiaoshi directory, it will trigger the pipeline to execute build or deployment.

kind: pipeline
type: docker
name: my-pipeline

steps:
  - name: checkout
    image: alpine/git
    commands:
      - ls  /tmp

trigger:
  paths:
    - hexiaoshi/

hehua2018 avatar Sep 11 '23 01:09 hehua2018

If I understood correctly, you want something like https://github.com/meltwater/drone-convert-pathschanged.

snahor avatar Sep 11 '23 19:09 snahor