#1064  Applicable Projects in Job Trigger
Closed
bufferUnderrun opened 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Minor
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1064
Please wait...
Page is in error, reload to recover