diff --git a/Jenkinsfile b/Jenkinsfile index babeb06..0eb909c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,8 +22,7 @@ pipeline { sh "git config --global user.email bot@jenkins.com" sh "git config --global user.name jenkins-bot" sh ''' - git config --global user.password "${GIT_PASSWORD}" - git remote set-url origin "${GIT_URL}" + git remote set-url origin "https://asafkaravani:${GIT_PASSWORD}@github.com/asafkaravani/apprentice.git" ''' // Tag the commit with the build number sh "git tag -a build_${buildNumber} -m 'Build ${buildNumber}' ${commitHash}"