From 8cc46562ac0cf434753e5ae674c07c9f9df1e311 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 16 Dec 2020 12:05:02 +0100
Subject: [PATCH] change pipeline

---
 Jenkinsfile | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index bdc9bbfb77..544b845221 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -13,11 +13,13 @@ pipeline {
     stages {
         stage('client build') {
             steps {
-                sh 'npm --version'
-                dir('goofy-client') {
-                    sh 'npm install'
-                    sh 'npm run build'
-                    sh 'npm run test'
+                container("nodejs"){
+                    sh 'npm --version'
+                    dir('goofy-client') {
+                        sh 'npm install'
+                        sh 'npm run build'
+                        sh 'npm run test'
+                    }
                 }
             }
         }
@@ -41,7 +43,7 @@ pipeline {
                     openshift.withCluster() {
                         openshift.withProject() {
                             dir('goofy-server') {
-                                openshift.startBuild("goofy-builder", "--from-dir=.", "--follow")
+                                openshift.startBuild("goofy-builder", "--from-dir=.", "--follow", "--wait")
                             }
                          
                             openshift.tag("goofy-builder:latest", "goofy-builder:${env.BRANCH_NAME}-${version}")
-- 
GitLab