浏览代码

新增jenkins构建脚本

WANG 5 年之前
父节点
当前提交
3ed8cbe828
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 1 1
      jenkins-prod.sh
  2. 3 1
      jenkins-test.sh

+ 1 - 1
jenkins-prod.sh

@@ -2,7 +2,7 @@
 pwd
 
 yarn
-npm run build
+npm run build:prod
 
 rm -rf ~/project/examcloud/static/student-client/dist/*
 cp -r  dist ~/project/examcloud/static/student-client/

+ 3 - 1
jenkins-test.sh

@@ -1,6 +1,8 @@
+#!/bin/bash
 pwd
+
 yarn
-npm run build
+npm run build:staging
 
 rm -rf ~/project/examcloud/static/student-client/dist/*
 cp -r  dist ~/project/examcloud/static/student-client/