소스 검색

ajout du stage 'ng build prod'

test dans jenkinsfile
henri carmelo 10 달 전
부모
커밋
445dd2d0c3
2개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 0
      Jenkinsfile
  2. 2 2
      angular-client/src/environments/environment.ts

+ 7 - 0
Jenkinsfile

@@ -44,6 +44,13 @@ pipeline {
         //         }
         //     }
         // }
+
+         stage('Build Angular') {
+            steps {
+                sh 'npm install'
+                sh 'ng build --prod'
+            }
+        }
         stage('Build & Deploy') {
             steps {
                 sh '''

+ 2 - 2
angular-client/src/environments/environment.ts

@@ -4,8 +4,8 @@
 
 export const environment = {
   production: false,
-  name: "(Test)",
-  apiUrl: `http://localhost:4000`,
+  name: "(dev)",
+  apiUrl: `https://api-preprod.foodgame.fr`,
 };
 
 /*