소스 검색

新增 jenkins 构建

WANG 5 년 전
부모
커밋
9802843d37
2개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      jenkins-prod.sh
  2. 9 0
      jenkins-test.sh

+ 9 - 0
jenkins-prod.sh

@@ -0,0 +1,9 @@
+#!/bin/bash
+pwd
+
+yarn
+npm run buildProd
+
+rm -rf ~/project/examcloud/static/photo-upload/dist/*
+mkdir -p ~/project/examcloud/static/photo-upload
+cp -r  dist ~/project/examcloud/static/photo-upload/

+ 9 - 0
jenkins-test.sh

@@ -0,0 +1,9 @@
+#!/bin/bash
+pwd
+
+yarn
+npm run build
+
+rm -rf ~/project/examcloud/static/photo-upload/dist/*
+mkdir -p ~/project/examcloud/static/photo-upload
+cp -r  dist ~/project/examcloud/static/photo-upload/