#1403  How could I get server url by paramter when CI
Closed
Ter opened 11 months ago

I want to get URL of my onedev server by CI paramter, how can I do that?

Robin Shen commented 11 months ago

You may create a groovy script in administration menu with below content:

import io.onedev.server.OneDev
import io.onedev.server.entitymanager.SettingManager

return OneDev.getInstance(SettingManager.class).systemSetting.serverUrl

And then you may use @script:your-script-name@ to get server url

Ter changed state to 'Closed' 11 months ago
Previous Value Current Value
Open
Closed
Ter commented 11 months ago

Got it, thanks

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1403
Please wait...
Page is in error, reload to recover