#523  The "Enable build support by adding .onedev-buildspec.yml" link not clickable
Closed
Aldy opened 2 years ago

Hi,

I've pushed a sample web app code into the OneDev repo, but the "Enable build support by adding..." link is not clickable (I assume this can be automatically created by clicking this link). This is the screenshot:

image_2.png

The project is a simple web app using .NET 6.0. I understand that in your example / tutorial, you use React to demonstrate this feature. Is this only supported in React? Thanks.

Aldy commented 2 years ago

Hi,

My mistake, the Job Executor in the Administration menu have to be configured first, after it is correctly configured (and tested) the link can be clicked. Thanks.

Robin Shen commented 2 years ago

It does not matter if job executor is defined or not. The link is disabled only when the user does not have permission to modify the source. Could it be possible that you are accessing the repository anonymously previously?

Aldy commented 2 years ago

All of the test accounts is having the Project Owner roles. I'm not sure, but I think, is it because I've applied the Branch Protection against the master branch? Maybe later I'll try to reproduce the issue, currently I still exploring OneDev features, so most probably I'll have the chance to test the scenario again.

Robin Shen commented 2 years ago

Yes, this should be the reason. The branch protection will prevent you from touching master branch.

Robin Shen changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#523
Please wait...
Page is in error, reload to recover