#!groovy pipeline { agent { label 'linux' } when { beforeAgent true; branch 'main' } stages { stage('NPM Install') { steps { sh 'npm clean-install' } } stage('Compile Adblock List') { steps { sh 'npm run compile' } } stage('git push') { steps { withCredentials([ gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token') ]) { sh ''' git checkout main git add . git commit -m "Update Compiled Adblock List" git push ''' } } } } }