|
|
@ -82,12 +82,10 @@ node('haimaxy-jnlp') { |
|
|
|
|
|
|
|
|
stage('async git repo') { |
|
|
stage('async git repo') { |
|
|
echo "current git repo: " |
|
|
echo "current git repo: " |
|
|
sh "git config --list | grep remote.origin.url" |
|
|
|
|
|
|
|
|
sh "git config remote.origin.url" |
|
|
echo "current git branch: " |
|
|
echo "current git branch: " |
|
|
sh "echo ${currentGitBranch}" |
|
|
|
|
|
sh "mv .git .git.tmp" |
|
|
|
|
|
sh "git clone http://47.106.79.88:10080/liuji/frontend" |
|
|
|
|
|
sh "mv frontend/.git .git" |
|
|
|
|
|
|
|
|
echo "${currentGitBranch}" |
|
|
|
|
|
sh "git config remote.origin.url http://47.106.79.88:10080/liuji/frontend" |
|
|
sh "git stash" |
|
|
sh "git stash" |
|
|
sh "git checkout ${currentGitBranch}" |
|
|
sh "git checkout ${currentGitBranch}" |
|
|
sh "git pull" |
|
|
sh "git pull" |
|
|
|