Browse Source

update

newbranch
domsgit 5 years ago
parent
commit
1aab0f50ed
1 changed files with 3 additions and 5 deletions
  1. 8
      Jenkinsfile

8
Jenkinsfile

@ -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"

Loading…
Cancel
Save