jenkins: use git credentials

This commit is contained in:
2025-10-09 09:19:47 +02:00
parent 34645efe06
commit 4dab52544e

18
Jenkinsfile vendored
View File

@@ -57,14 +57,16 @@ pipeline {
stage('Push updates') { stage('Push updates') {
steps { steps {
dir("fdroid-repo") { dir("fdroid-repo") {
sh ''' withCredentials([gitUsernamePassword(credentialsId: '3563e7c8-6a79-407c-9681-5d6e6291ba34')]) {
git fetch origin sh '''
git cehckout master git fetch origin
git add . git cehckout master
git commit -m "Update repo from CI" git add .
git push origin master git commit -m "Update repo from CI"
./push-apks.sh git push origin master
''' ./push-apks.sh
'''
}
} }
} }
} }