Parcourir la source

新增 jenkins 构建

WANG il y a 5 ans
Parent
commit
9802843d37
2 fichiers modifiés avec 18 ajouts et 0 suppressions
  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/