test
All checks were successful
andreas-personal/AndysAdguardHomeBlockList/pipeline/head This commit looks good

This commit is contained in:
Andreas Fahrecker 2024-04-10 17:44:44 +02:00
parent 1196994f0d
commit e72ecc35a2

4
Jenkinsfile vendored
View File

@ -25,6 +25,8 @@ pipeline {
if (sh(script: 'git log -1 --pretty=format:"%an"', returnStdout: true).trim() == 'Jenkins') { if (sh(script: 'git log -1 --pretty=format:"%an"', returnStdout: true).trim() == 'Jenkins') {
currentBuild.result = 'ABORTED' currentBuild.result = 'ABORTED'
error('Last commit was by Jenkins, skipping build') error('Last commit was by Jenkins, skipping build')
} else {
echo 'Last commit was not by Jenkins, continuing build'
} }
} }
} }
@ -45,7 +47,7 @@ pipeline {
} }
steps { steps {
sh 'mkdir -p out' sh 'mkdir -p out'
sh 'rm out/andysadguardhomeblocklist.txt' sh 'npm run compile:test'
sh ''' sh '''
git add out/andysadguardhomeblocklist.txt git add out/andysadguardhomeblocklist.txt
git commit -m "Update Compiled Adblock List" git commit -m "Update Compiled Adblock List"