diff --git a/Jenkinsfile b/Jenkinsfile index aea97da..aa35315 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,22 +5,30 @@ pipeline { label 'linux' } stages { - when { - beforeAgent true; - branch 'main' - } stage('NPM Install') { + when { + beforeAgent true; + branch 'main' + } steps { sh 'npm clean-install' } } stage('Compile Adblock List') { + when { + beforeAgent true; + branch 'main' + } steps { // sh 'npm run compile' sh 'echo "Compiling Adblock List...">test.txt' } } stage('git push') { + when { + beforeAgent true; + branch 'main' + } steps { withCredentials([ gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')