Test new Jenkins File
Some checks failed
andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit

This commit is contained in:
Andreas Fahrecker 2024-04-10 01:34:07 +02:00
parent a3655a8ee4
commit 64d96165fe

13
Jenkinsfile vendored
View File

@ -1,17 +1,13 @@
#!groovy #!groovy
pipeline { pipeline {
agent none agent {
label 'linux'
stages { }
stage('Compile List and Push to Gitea') {
when { when {
beforeAgent true; beforeAgent true;
branch 'main' branch 'main'
} }
agent {
label 'linux'
}
stages { stages {
stage('NPM Install') { stage('NPM Install') {
steps { steps {
@ -29,6 +25,7 @@ pipeline {
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token') gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
]) { ]) {
sh ''' sh '''
git checkout main
git add . git add .
git commit -m "Update Compiled Adblock List" git commit -m "Update Compiled Adblock List"
git push git push
@ -37,6 +34,4 @@ pipeline {
} }
} }
} }
}
}
} }