This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
Andreas Fahrecker 64d96165fe
Some checks failed
andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit
Test new Jenkins File
2024-04-10 01:34:07 +02:00

38 lines
839 B
Groovy

#!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
'''
}
}
}
}
}