автосборка

This commit is contained in:
caf 2023-01-10 14:00:43 +04:00
parent d8da4eab04
commit eb4fc57b49
4 changed files with 39 additions and 0 deletions

13
JenkinsBuildProd Normal file
View File

@ -0,0 +1,13 @@
node('Natrium'){
stage('get new version to repo') {
checkout scm
}
stage('Install dependencies') {
sh 'npm install'
}
stage('build project') {
sh 'npm run build-prod:lithium'
}
}

13
JenkinsBuildTest Normal file
View File

@ -0,0 +1,13 @@
node('Lithium'){
stage('get new version to repo') {
checkout scm
}
stage('Install dependencies') {
sh 'npm install'
}
stage('build project') {
sh 'npm run build-test:lithium'
}
}

View File

@ -5,6 +5,8 @@
"ng": "ng",
"start": "ng serve --proxy-config proxy.confi.json",
"build": "ng build",
"build-test:lithium": "ng build --output-path=/var/www/html/selfdelivery-pitsburg-test.mydatahosting.ru",
"build-prod:lithium": "ng build --output-path=/var/www/html/selfdelivery-pitsburg.mydatahosting.ru",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},

11
proxy.confi.json Normal file
View File

@ -0,0 +1,11 @@
{
"/api": {
"target": "http://selfdelivery-pitsburg-test.mydatahosting.ru/api",
"secure": false,
"pathRewrite": {
"^/api": ""
},
"changeOrigin": true,
"logLevel": "debug"
}
}