test new Jenkinsfile
This commit is contained in:
		
							parent
							
								
									704578853c
								
							
						
					
					
						commit
						0ca2622319
					
				
					 1 changed files with 22 additions and 22 deletions
				
			
		
							
								
								
									
										44
									
								
								Jenkinsfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										44
									
								
								Jenkinsfile
									
										
									
									
										vendored
									
									
								
							|  | @ -21,30 +21,30 @@ pipeline { | ||||||
|             }         |             }         | ||||||
|         } |         } | ||||||
|          |          | ||||||
|         stage('Reporting') { | //         stage('Reporting') { | ||||||
|             steps { | //             steps { | ||||||
|                 withMaven(maven: 'Maven', options: [findbugsPublisher(disabled: true)]) { | //                 withMaven(maven: 'Maven', options: [findbugsPublisher(disabled: true)]) { | ||||||
|                     sh "mvn --batch-mode -V -U -e -P let_reporting pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs" | //                     sh "mvn --batch-mode -V -U -e -P let_reporting pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs" | ||||||
|                 } | //                 } | ||||||
|             } | //             } | ||||||
|         } | //         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     post { | //     post { | ||||||
|         always { | //         always { | ||||||
|             junit testResults: '**/target/surefire-reports/TEST-*.xml' | //             junit testResults: '**/target/surefire-reports/TEST-*.xml' | ||||||
| 
 | // | ||||||
|             recordIssues enabledForFailure: true, tool: spotBugs() | //             recordIssues enabledForFailure: true, tool: spotBugs() | ||||||
|             recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml') | //             recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml') | ||||||
|         } | //         } | ||||||
|         failure { | //         failure { | ||||||
|             setBuildStatus("Build failed", "FAILURE"); | //             setBuildStatus("Build failed", "FAILURE"); | ||||||
|             emailext body: "The build of the LET Application (${env.JOB_NAME}) failed! See ${env.BUILD_URL}", recipientProviders: [[$class: 'CulpritsRecipientProvider']], subject: 'LET Application Build Failure' | //             emailext body: "The build of the LET Application (${env.JOB_NAME}) failed! See ${env.BUILD_URL}", recipientProviders: [[$class: 'CulpritsRecipientProvider']], subject: 'LET Application Build Failure' | ||||||
|         } | //         } | ||||||
|         success { | //         success { | ||||||
|             setBuildStatus("Build complete", "SUCCESS"); | //             setBuildStatus("Build complete", "SUCCESS"); | ||||||
|         } | //         } | ||||||
|     } | //     } | ||||||
|     options { |     options { | ||||||
|         timeout(time: 10, unit: 'MINUTES') |         timeout(time: 10, unit: 'MINUTES') | ||||||
|         buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '7')) |         buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '7')) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti