mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	CI improvement: move docs upload to separate build
This commit is contained in:
		
							
								
								
									
										23
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -92,10 +92,6 @@ pipeline { | |||||||
| 							sh 'yarn install' | 							sh 'yarn install' | ||||||
| 							sh 'yarn build' | 							sh 'yarn build' | ||||||
| 						} | 						} | ||||||
| 						dir(path: 'docs/dist') { |  | ||||||
| 							sh 'tar -czf ../docs.tgz *' |  | ||||||
| 						} |  | ||||||
| 						archiveArtifacts(artifacts: 'docs/docs.tgz', allowEmptyArchive: false) |  | ||||||
| 					} | 					} | ||||||
| 				} | 				} | ||||||
| 				stage('Cypress') { | 				stage('Cypress') { | ||||||
| @@ -185,30 +181,17 @@ pipeline { | |||||||
| 		} | 		} | ||||||
| 		stage('Docs / Comment') { | 		stage('Docs / Comment') { | ||||||
| 			parallel { | 			parallel { | ||||||
| 				stage('Master Docs') { | 				stage('Docs Job') { | ||||||
| 					when { | 					when { | ||||||
| 						allOf { | 						allOf { | ||||||
| 							branch 'master' | 							when { branch pattern: "^(develop|master)$", comparator: "REGEXP"} | ||||||
| 							not { | 							not { | ||||||
| 								equals expected: 'UNSTABLE', actual: currentBuild.result | 								equals expected: 'UNSTABLE', actual: currentBuild.result | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 					steps { | 					steps { | ||||||
| 						npmDocsReleaseMaster() | 						build wait: false, job: 'nginx-proxy-manager-docs', parameters: [string(name: 'docs_branch', value: "$BRANCH_NAME")] | ||||||
| 					} |  | ||||||
| 				} |  | ||||||
| 				stage('Develop Docs') { |  | ||||||
| 					when { |  | ||||||
| 						allOf { |  | ||||||
| 							branch 'develop' |  | ||||||
| 							not { |  | ||||||
| 								equals expected: 'UNSTABLE', actual: currentBuild.result |  | ||||||
| 							} |  | ||||||
| 						} |  | ||||||
| 					} |  | ||||||
| 					steps { |  | ||||||
| 						npmDocsReleaseDevelop() |  | ||||||
| 					} | 					} | ||||||
| 				} | 				} | ||||||
| 				stage('PR Comment') { | 				stage('PR Comment') { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user