jenkins: use git credentials
This commit is contained in:
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@@ -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
|
||||||
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user