From 0abe4ca896b861e3ae814b4341ea28b02a6098ba Mon Sep 17 00:00:00 2001
From: Homada Boumedane <homada.boumedane@unige.ch>
Date: Fri, 21 Jun 2019 14:59:52 +0200
Subject: [PATCH] chore(dlcm-portal): add stages

add stages to clean workspace and zip the app folder.
---
 Jenkinsfile | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index db51a4c48..6d712ebb6 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,37 +6,34 @@ pipeline{
   }
 
   stages{
-    stage('Clean'){
-      cleanWs()
-    }
-
-    stage ('checkout'){
+    stage ('Checkout'){
       steps{
+        cleanWs()
         checkout scm
       }
     }
 
-    stage ('install modules'){
+    stage ('Install modules'){
       steps{
         sh 'npm install --verbose -d'
       }
     }
 
-    stage ('test'){
+    stage ('Test'){
       steps{
         // sh 'ng test --watch=false --no-progress --browsers=ChromeNoSandboxHeadless'
         echo 'Test....'
       }
     }
 
-    stage ('code quality'){
+    stage ('Code quality'){
       steps{
         // sh 'ng lint'
         echo 'Lint....'
       }
     }
 
-    stage ('build') {
+    stage ('Build') {
       steps{
         sh 'ng build --aot=true --prod=true'
       }
-- 
GitLab