Explorar el Código

ajout du stage 'ng build prod'

test dans jenkinsfile
henri carmelo hace 10 meses
padre
commit
445dd2d0c3
Se han modificado 2 ficheros con 9 adiciones y 2 borrados
  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`,
 };
 
 /*