mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-30 23:33:34 +00:00 
			
		
		
		
	Archive backend coverage in ci
This commit is contained in:
		
							
								
								
									
										5
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -1,7 +1,6 @@ | |||||||
| import groovy.transform.Field | import groovy.transform.Field | ||||||
|  |  | ||||||
| @Field | @Field | ||||||
| def shOutput = "" |  | ||||||
| def buildxPushTags = "" | def buildxPushTags = "" | ||||||
|  |  | ||||||
| def getVersion() { | def getVersion() { | ||||||
| @@ -85,10 +84,8 @@ pipeline { | |||||||
| 			} | 			} | ||||||
| 			post { | 			post { | ||||||
| 				success { | 				success { | ||||||
|  | 					archiveArtifacts allowEmptyArchive: false, artifacts: 'coverage.html' | ||||||
| 					archiveArtifacts allowEmptyArchive: false, artifacts: 'bin/*' | 					archiveArtifacts allowEmptyArchive: false, artifacts: 'bin/*' | ||||||
| 					script { |  | ||||||
| 						shOutput = "" |  | ||||||
| 					} |  | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|   | |||||||
| @@ -46,6 +46,7 @@ if [ "${1:-}" = "--inside-docker" ]; then | |||||||
| 	go test -json -cover -coverprofile="$DIR/../../coverage.out" ./internal/... | tparse | 	go test -json -cover -coverprofile="$DIR/../../coverage.out" ./internal/... | tparse | ||||||
| 	go tool cover -html="$DIR/../../coverage.out" -o "$DIR/../../coverage.html" | 	go tool cover -html="$DIR/../../coverage.out" -o "$DIR/../../coverage.html" | ||||||
| 	rm -f "$DIR/../../coverage.out" | 	rm -f "$DIR/../../coverage.out" | ||||||
|  | 	chown 1000:1000 "$DIR/../../coverage.html" | ||||||
| 	golangci-lint -v run ./... | 	golangci-lint -v run ./... | ||||||
| else | else | ||||||
| 	# run this script from within docker | 	# run this script from within docker | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user