From 27dc9c15ceb16838993a53b2e73d5d1399b350a4 Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Tue, 15 Mar 2022 14:19:10 +0800
Subject: [PATCH] jenkinsfile 修改

---
 Jenkinsfile |    3 +--
 Dockerfile  |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 066ce2a..19fa0f9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,6 @@
 #将dist目录内容复制到nginx容器html内部
 COPY dist /usr/share/nginx/html/
 
-COPY nginx.conf /etc/nginx/nginx.conf
+# COPY nginx.conf /etc/nginx/nginx.conf
 
 EXPOSE 80
\ No newline at end of file
diff --git a/Jenkinsfile b/Jenkinsfile
index 85e9886..8c6c089 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -13,7 +13,6 @@
           git(url: 'http://192.168.0.105:10010/r/zhba_enterprises.git', credentialsId: 'gitblit', branch: 'master', changelog: true, poll: false)
           sh 'ls -al'
         }
-
       }
     }
 
@@ -22,9 +21,9 @@
       steps {
         container('nodejs') {
           sh 'ls'
-          sh 'ls'
           sh 'npm install -g cnpm --registry=https://registry.npm.taobao.org'
           sh 'cnpm i --no-package-lock'
+          sh 'cnpm run build'
         }
 
       }

--
Gitblit v1.9.3