Jenkins Maybe Fix Git Error
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 04:16:02 +02:00
parent a16f1bc3e1
commit 189bf4f373

4
Jenkinsfile vendored
View File

@ -24,6 +24,7 @@ pipeline {
git checkout main
mkdir -p dist
npm run compile
git stash
'''
}
}
@ -37,9 +38,10 @@ pipeline {
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
]) {
sh '''
git pull --rebase
git stash pop || true
git add .
git commit -m "Update Compiled Adblock List"
git pull --rebase
git push
'''
}