mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 02:25:53 +01:00 
			
		
		
		
	Jenkins: Add a global build timeout
Prepares migration to oss.cloudogu.com. There, we're recognized some builds that hang for hours after some errors.
This commit is contained in:
		
							
								
								
									
										5
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -11,9 +11,11 @@ node() { // No specific label | |||||||
|  |  | ||||||
|   properties([ |   properties([ | ||||||
|     // Keep only the last 10 build to preserve space |     // Keep only the last 10 build to preserve space | ||||||
|     buildDiscarder(logRotator(numToKeepStr: '10')), |     buildDiscarder(logRotator(numToKeepStr: '10')) | ||||||
|   ]) |   ]) | ||||||
|  |  | ||||||
|  |   timeout(activity: true, time: 20, unit: 'MINUTES') { | ||||||
|  |  | ||||||
|     catchError { |     catchError { | ||||||
|  |  | ||||||
|       Maven mvn = setupMavenBuild() |       Maven mvn = setupMavenBuild() | ||||||
| @@ -51,6 +53,7 @@ node() { // No specific label | |||||||
|     warnings consoleParsers: [[parserName: 'Maven']], canRunOnFailed: true |     warnings consoleParsers: [[parserName: 'Maven']], canRunOnFailed: true | ||||||
|  |  | ||||||
|     mailIfStatusChanged(commitAuthorEmail) |     mailIfStatusChanged(commitAuthorEmail) | ||||||
|  |   } | ||||||
| } | } | ||||||
|  |  | ||||||
| String mainBranch | String mainBranch | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user