test
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit
				
			This commit is contained in:
		
							
								
								
									
										36
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										36
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -26,8 +26,10 @@ pipeline { | |||||||
|                 branch 'main' |                 branch 'main' | ||||||
|             } |             } | ||||||
|             steps { |             steps { | ||||||
|                 sh 'pwd' |                 dir ('build-dir') { | ||||||
|                 sh 'npm clean-install' |                     sh 'pwd' | ||||||
|  |                     sh 'npm clean-install' | ||||||
|  |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         stage('Compile Adblock List') { |         stage('Compile Adblock List') { | ||||||
| @@ -36,12 +38,14 @@ pipeline { | |||||||
|                 branch 'main' |                 branch 'main' | ||||||
|             } |             } | ||||||
|             steps { |             steps { | ||||||
|                 sh ''' |                 dir ('build-dir') { | ||||||
|                     mkdir -p out |                     sh ''' | ||||||
|                     npm run compile:test |                         mkdir -p out | ||||||
|                     git add out/andysadguardhomeblocklist.txt |                         npm run compile:test | ||||||
|                     git commit -m "Update Compiled Adblock List" |                         git add out/andysadguardhomeblocklist.txt | ||||||
|                 ''' |                         git commit -m "Update Compiled Adblock List" | ||||||
|  |                     ''' | ||||||
|  |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         stage('git push') { |         stage('git push') { | ||||||
| @@ -50,13 +54,15 @@ pipeline { | |||||||
|                 branch 'main' |                 branch 'main' | ||||||
|             } |             } | ||||||
|             steps { |             steps { | ||||||
|                 withCredentials([ |                 dir ('build-dir') { | ||||||
|                     gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token') |                     withCredentials([ | ||||||
|                 ]) { |                         gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token') | ||||||
|                     sh ''' |                     ]) { | ||||||
|                         git pull |                         sh ''' | ||||||
|                         git push -u origin main |                             git pull | ||||||
|                     ''' |                             git push -u origin main | ||||||
|  |                         ''' | ||||||
|  |                     } | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user