钟日健
2022-03-15 27dc9c15ceb16838993a53b2e73d5d1399b350a4
jenkinsfile 修改
2 files modified
5 ■■■■■ changed files
Dockerfile 2 ●●● patch | view | raw | blame | history
Jenkinsfile 3 ●●●● patch | view | raw | blame | history
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
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'
        }
      }