Pipeline now operates in parallel.
This commit is contained in:
		
							
								
								
									
										26
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -28,23 +28,43 @@ pipeline { | |||||||
|                 archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false |                 archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         stage("build showcase") { |         stage("publish") { | ||||||
|  |             parallel { | ||||||
|  |                 stage("setup showcase") { | ||||||
|  |                     stages { | ||||||
|  |                         stage("install showcase") { | ||||||
|                             steps { |                             steps { | ||||||
|                                 dir('./showcase/') { |                                 dir('./showcase/') { | ||||||
|                                     nodejs('NodeJS (17.4.0)') { |                                     nodejs('NodeJS (17.4.0)') { | ||||||
|                                         sh "npm i" |                                         sh "npm i" | ||||||
|  |                                     } | ||||||
|  |                                 } | ||||||
|  |                             } | ||||||
|  |                         } | ||||||
|  |                         stage("build showcase") { | ||||||
|  |                             steps { | ||||||
|  |                                 dir('./showcase/') { | ||||||
|  |                                     nodejs('NodeJS (17.4.0)') { | ||||||
|                                         sh "npm run build" |                                         sh "npm run build" | ||||||
|                                     } |                                     } | ||||||
|                                 } |                                 } | ||||||
|                             } |                             } | ||||||
|                         } |                         } | ||||||
|         stage("publish docs") { |                         stage("deploy showcase") { | ||||||
|  |                             steps { | ||||||
|  |                                 publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'showcase/dist', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: '']) | ||||||
|  |                             } | ||||||
|  |                         } | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |                 stage("generate docs") { | ||||||
|                     steps { |                     steps { | ||||||
|                         nodejs('NodeJS (17.4.0)') { |                         nodejs('NodeJS (17.4.0)') { | ||||||
|                             sh "npm run docs" |                             sh "npm run docs" | ||||||
|                         } |                         } | ||||||
|                         publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: '']) |                         publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs', reportFiles: 'index.html', reportName: 'AudioShowKit JSDocs', reportTitles: '']) | ||||||
|                 publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'showcase/dist', reportFiles: 'index.html', reportName: 'AudioShowKit Demo', reportTitles: '']) |                     } | ||||||
|  |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user