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