Hi,
I’m trying to update the timeout for my builds.
I’ve tried using Drone UI (Feature request: Allow links to specific log lines), but I don’t have the timeout option.
So i’ve tried to set my user as admin, by adding
–env=DRONE_USER_CREATE=username:{{my_github_account_name}},admin=true
to my Drone-Server, but I still can’t find the timeout option…
Maybe anyone know what’s the problem?
Another question,
Can I set a global timeout to drone? instead of adding the timeout to every repository.
Thanks
I noticed there was a typo in the environment variable (equal sign intead of colon):
- –env=DRONE_USER_CREATE=username:{{my_github_account_name}},admin=true
+ –env=DRONE_USER_CREATE=username:{{my_github_account_name}},admin:true
Once properly configured, and with debug mode enabled, you will see the following entries in your server logs indicating the admin account was created. If the account already exists, you will see log entries indicating the account was updated to an admin account.
{“admin”:true,“level”:“debug”,“login”:“octocat”,“machine”:false,“msg”:“bootstrap: create account”,“time”:“2020-12-08T20:57:52Z”,“token”:“”}
{“admin”:true,“level”:“info”,“login”:“octocat”,“machine”:false,“msg”:“bootstrap: account created”,“time”:“2020-12-08T20:57:52Z”,“token”:“f6Wvg3rX6env1hTlF4iylUfMlIylIBM1”}
Thanks, it’s working now!
Can I set a global timeout in drone? instead of adding the timeout to every repository.