jenkins: change git credentials
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -27,7 +27,7 @@ pipeline {
|
||||
stage('Checkout F-Droid Repo') {
|
||||
steps {
|
||||
dir("fdroid-repo") {
|
||||
git branch: 'master', url: "https://gitlab.julian-mutter.de/julian/fdroid-frajul.git", credentialsId: "3563e7c8-6a79-407c-9681-5d6e6291ba34"
|
||||
git branch: 'master', url: "https://gitlab.julian-mutter.de/julian/fdroid-frajul.git", credentialsId: "gitea"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ pipeline {
|
||||
stage('Push updates') {
|
||||
steps {
|
||||
dir("fdroid-repo") {
|
||||
withCredentials([gitUsernamePassword(credentialsId: '3563e7c8-6a79-407c-9681-5d6e6291ba34')]) {
|
||||
withCredentials([gitUsernamePassword(credentialsId: 'gitea')]) {
|
||||
sh '''
|
||||
git config --global user.email "jenkins@comumail.de"
|
||||
git config --global user.name "Jenkins CI"
|
||||
|
||||
Reference in New Issue
Block a user