Pārlūkot izejas kodu

ajout du stage 'ng build prod'

test dans jenkinsfile
henri carmelo 10 mēneši atpakaļ
vecāks
revīzija
445dd2d0c3
2 mainītis faili ar 9 papildinājumiem un 2 dzēšanām
  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`,
 };
 
 /*