Applicable Projects in Job Trigger (OD-1064)
bufferUnderrun opened 3 years ago

Hi,

I wonder why there is an option to limit job trigger to "Applicable projects". I believe that job trigger was only for the current project because job are per project only ?

Thanks for a little explanation

image.png

  • Robin Shen commented 3 years ago

    When project is forked, it will have same set of triggers, and you may do not want some triggers firing. For instance, the trigger to automatically sync onedev/server to its github mirror.

  • bufferUnderrun commented 3 years ago

    When project is forked, all source code is copied and so the onedev-buildspec.yml including jobs and theirs triggers.

    The fork project will trigger is own job, not the job of the source project forked ? Maybe you design this features for performance concern ?

    Then, why a project name selection instead of checkbox saying "disable trigger when forking ?"

  • Robin Shen commented 3 years ago

    All triggers and jobs are defined in .onedev-buildspec.yaml. There is no notion of triggering job of other projects here. Project fork is just an example, it may not be a fork at all (for instance clone a project and push under a different name, etc.)

  • bufferUnderrun commented 3 years ago

    i find the option a bit confusing or not very usefull...

    At least, thanks for the light, i close the thread.

  • bufferUnderrun changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Minor
Assignee
Issue Votes (0)
Watchers (3)
Reference
OD-1064
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover