소스 검색

新增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/