📜  如何在 jenkins 管道中进行 git push - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:12.557000             🧑  作者: Mango

代码示例1
withCredentials([usernamePassword(credentialsId: 'ci-github', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
                        sh('git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/my-org/my-repo.git')
                    }