Browse Source

新增jenkins构建脚本

WANG 5 years ago
parent
commit
3ed8cbe828
2 changed files with 4 additions and 2 deletions
  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/