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", "build": "ng build",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e",
"mybuild": "HOME=/ ./node_modules/@angular/cli/bin/ng build -prod -aot"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {

11
Jenkinsfile vendored
View File

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