Commit e7cfa768 authored by wentao.suo's avatar wentao.suo

echo log

parent b73472b0
...@@ -142,6 +142,7 @@ def checkout_nodejs(systemName, branchName) { ...@@ -142,6 +142,7 @@ def checkout_nodejs(systemName, branchName) {
def folder = new File( "${currentPath}/.git/hooks" ) def folder = new File( "${currentPath}/.git/hooks" )
echo "${currentPath}/.git/hooks" older.exists() echo "${currentPath}/.git/hooks" older.exists()
if( !folder.exists()){ if( !folder.exists()){
echo ">>>>>>>>> first git clone"
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath
def bowerFile = fileExists './bower.json' def bowerFile = fileExists './bower.json'
if (bowerFile) { if (bowerFile) {
...@@ -149,6 +150,7 @@ def checkout_nodejs(systemName, branchName) { ...@@ -149,6 +150,7 @@ def checkout_nodejs(systemName, branchName) {
} }
sh "npm install" sh "npm install"
} else { } else {
echo ">>>>>>>>> not first git clone"
sh "cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/" sh "cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
sh "chmod +x .git/hooks/post-checkout" sh "chmod +x .git/hooks/post-checkout"
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment