root file
This commit is contained in:
		
							parent
							
								
									826bcc151d
								
							
						
					
					
						commit
						5d515230b8
					
				
							
								
								
									
										37
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,37 @@
 | 
				
			|||||||
 | 
					pipeline {
 | 
				
			||||||
 | 
					  agent {
 | 
				
			||||||
 | 
					    docker {
 | 
				
			||||||
 | 
					      image 'node:14'
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  stages {
 | 
				
			||||||
 | 
					    stage('install') {
 | 
				
			||||||
 | 
					      steps {
 | 
				
			||||||
 | 
					        sh 'node -v'
 | 
				
			||||||
 | 
					        sh 'npm -v'
 | 
				
			||||||
 | 
					        sh 'npm install'
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    stage('eslint') {
 | 
				
			||||||
 | 
					      steps {
 | 
				
			||||||
 | 
					        sh 'npm run eslint'
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    stage('build') {
 | 
				
			||||||
 | 
					      steps {
 | 
				
			||||||
 | 
					        sh 'npm run build'
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    stage('clean-all') {
 | 
				
			||||||
 | 
					      steps {
 | 
				
			||||||
 | 
					        sh 'rm -rf .[!.]*'
 | 
				
			||||||
 | 
					        sh 'rm -rf ./*'
 | 
				
			||||||
 | 
					        sh 'ls -a'
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user