jenkins: use git credentials
This commit is contained in:
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@@ -57,14 +57,16 @@ pipeline {
|
||||
stage('Push updates') {
|
||||
steps {
|
||||
dir("fdroid-repo") {
|
||||
sh '''
|
||||
git fetch origin
|
||||
git cehckout master
|
||||
git add .
|
||||
git commit -m "Update repo from CI"
|
||||
git push origin master
|
||||
./push-apks.sh
|
||||
'''
|
||||
withCredentials([gitUsernamePassword(credentialsId: '3563e7c8-6a79-407c-9681-5d6e6291ba34')]) {
|
||||
sh '''
|
||||
git fetch origin
|
||||
git cehckout master
|
||||
git add .
|
||||
git commit -m "Update repo from CI"
|
||||
git push origin master
|
||||
./push-apks.sh
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user