Answers for "how to git push in jenkins pipeline"

0

how to git push in jenkins pipeline

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')
                    }
Posted by: Guest on May-09-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language