aexiaoliou 1 year ago
parent
commit
ac8fe17893
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -85,8 +85,8 @@ pipeline {
                 '''
                 echo '构建前端'
                 sh '''
-                    whoami
-                    bash -c cd h5 && cnpm install && cnpm run build:test-on-server
+                    source ~/.bashrc
+                    cd h5 && cnpm install && cnpm run build:test-on-server
                 '''
                 echo 'test step执行完了'
             }