This commit is contained in:
yetju000 2019-11-25 13:40:13 +01:00
commit d4c6d2dbd0
3 changed files with 10 additions and 5 deletions

1
Dockerfile Normal file
View File

@ -0,0 +1 @@
FROM circleci/node:10

View File

@ -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": {

11
Jenkinsfile vendored
View File

@ -35,17 +35,20 @@ pipeline {
}
stage('Front-end') {
agent {
docker { image 'node:10-alpine' }
dockerfile true
}
environment {
HOME = '.'
}
steps {
echo 'Building FrontEnd...'
sh '''
apt-get install git
git clone https://git.wmi.amu.edu.pl/s416178/Punktonerzy.git
[ ! -d "Punktonerzy" ] && git clone https://git.wmi.amu.edu.pl/s416178/Punktonerzy.git
cd Punktonerzy
git pull
cd FrontEnd
npm install
ng build --prod
npm run mybuild
'''
}
}