Test new Jenkins File
Some checks failed
andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit
Some checks failed
andreas-personal/AndysAdguardHomeBlockList/pipeline/head There was a failure building this commit
This commit is contained in:
parent
a3655a8ee4
commit
64d96165fe
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -1,17 +1,13 @@
|
||||
#!groovy
|
||||
|
||||
pipeline {
|
||||
agent none
|
||||
|
||||
stages {
|
||||
stage('Compile List and Push to Gitea') {
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
when {
|
||||
beforeAgent true;
|
||||
branch 'main'
|
||||
}
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
stages {
|
||||
stage('NPM Install') {
|
||||
steps {
|
||||
@ -29,6 +25,7 @@ pipeline {
|
||||
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
|
||||
]) {
|
||||
sh '''
|
||||
git checkout main
|
||||
git add .
|
||||
git commit -m "Update Compiled Adblock List"
|
||||
git push
|
||||
@ -37,6 +34,4 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user