Adding timeout for compile and javadoc

This commit is contained in:
Joakim Erdfelt 2016-09-20 13:00:57 -07:00
parent fb7da26ad2
commit e0c433c831
1 changed files with 8 additions and 4 deletions

12
Jenkinsfile vendored
View File

@ -21,8 +21,10 @@ node('linux') {
try
{
stage 'Compile'
withEnv(mvnEnv) {
sh "mvn -B clean install -Dtest=None"
timeout(15) {
withEnv(mvnEnv) {
sh "mvn -B clean install -Dtest=None"
}
}
} catch(Exception e) {
notifyBuild("Compile Failure")
@ -32,8 +34,10 @@ node('linux') {
try
{
stage 'Javadoc'
withEnv(mvnEnv) {
sh "mvn -B javadoc:javadoc"
timeout(15) {
withEnv(mvnEnv) {
sh "mvn -B javadoc:javadoc"
}
}
} catch(Exception e) {
notifyBuild("Javadoc Failure")