diff --git a/FrontEnd/package.json b/FrontEnd/package.json index c4f81d8..260fa5f 100644 --- a/FrontEnd/package.json +++ b/FrontEnd/package.json @@ -8,7 +8,8 @@ "build": "ng build", "test": "ng test", "lint": "ng lint", - "e2e": "ng e2e" + "e2e": "ng e2e", + "mybuild": "HOME=/ ./node_modules/@angular/cli/bin/ng build -prod -aot" }, "private": true, "dependencies": { diff --git a/Jenkinsfile b/Jenkinsfile index eef270b..46625e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,7 +33,7 @@ pipeline { echo 'Deploying...' } } - /*stage('Front-end') { + stage('Front-end') { agent { dockerfile true } @@ -50,9 +50,9 @@ pipeline { git pull cd FrontEnd npm install - ./node_modules/@angular/cli/bin/ng build --prod + npm run mybuild ''' } - }*/ + } } } \ No newline at end of file