I setup a local drone server for our CI. And our project is a java project managed by maven. When run the mvn clean install
command, maven will download all dependencies into ~/.m2
directory. The first time run this command will download a huge of data from maven remote repository which may take a very long time. In this case, I got below error on drone CI.
ERROR: terminal inactive for 15m0s, build cancelled
I understand that this message means there is no output on the console for 15 minutes. But it is a normal case in my build environment. I wander whether I can configure the 15m to be a larger value so I can build our project.
My previous answer is outdated. You can now change the default timeout for each individual repository from the repository settings screen. This setting is only available to system administrators.
You can increase the terminal inactive timeout by passing
DRONE_TIMEOUT=<duration>
to each of your agents.The timeout value may be any valid Go duration string [1].
[1] https://golang.org/pkg/time/#ParseDuration