BlackToppStudios / Mezz_Foundation

Foundational Data types that enforce no opinions on how to build games and provide many facilities that complex games need. This largely avoids graphics and physics, but provides tools like the SortedVector, CountedPtr and HashedString classes.
GNU General Public License v3.0
3 stars 0 forks source link

Add a timeout to Jenkins builds #31

Closed Sqeaky closed 5 years ago

Sqeaky commented 6 years ago

A timeout of some kind should added to builds. In the event something locks up or otherwise doesn't work right the Jenkins cluster shouldn't spin forever. Here is a sample timeout line that should be good to go in the options section of the pipeline in the Jenkinsfile. 10 minutes seems like a reasonable default. Higher or lower might be reasonable.

timeout(time: 600, unit: 'SECONDS')

The whole thing might look like:

    options {
        buildDiscarder(logRotator(numToKeepStr:'30'))
        timeout(time: 600, unit: 'SECONDS')
    }
Sqeaky commented 5 years ago

I thought Ducky's PR had this. It actually didn't but #36 does have this.