Compare commits
5 Commits
ff50650c28
...
d9848a8ba3
Author | SHA1 | Date | |
---|---|---|---|
d9848a8ba3 | |||
a9d42484cc | |||
a276593c7f | |||
3f17341b2e | |||
6165f523cc |
54
Jenkinsfile
vendored
54
Jenkinsfile
vendored
@ -1,54 +1,24 @@
|
|||||||
|
@Library('farmmaps-shared-library') _
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any;
|
||||||
environment {
|
options {
|
||||||
PACKAGE_VERSION_PREFIX=sh(script: 'jq .version package.json |sed "s/\\"//g"', returnStdout: true).trim()
|
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
||||||
PACKAGE_VERSION="${PACKAGE_VERSION_PREFIX}"
|
disableConcurrentBuilds abortPrevious: true;
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('npm install'){
|
stage('FarmmapsLibBuildAll') {
|
||||||
steps {
|
steps {
|
||||||
sh '''rm -rf node_modules/
|
stepFarmmapsLibBuildAll();
|
||||||
npm install --legacy-peer-deps
|
|
||||||
cd projects/common
|
|
||||||
npm install --legacy-peer-deps
|
|
||||||
cd ../common-map
|
|
||||||
npm install --legacy-peer-deps
|
|
||||||
cd ../common-map3d
|
|
||||||
npm install --legacy-peer-deps
|
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('build'){
|
|
||||||
steps {
|
|
||||||
sh '''ng build common --configuration production
|
|
||||||
ng build common-map --configuration production
|
|
||||||
ng build common-map3d --configuration production'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('npm publish'){
|
|
||||||
steps {
|
|
||||||
sh '''cd dist/common
|
|
||||||
npm version ${PACKAGE_VERSION} --allow-same-version
|
|
||||||
npm publish
|
|
||||||
cd ../common-map
|
|
||||||
npm version ${PACKAGE_VERSION} --allow-same-version
|
|
||||||
npm publish
|
|
||||||
cd ../common-map3d
|
|
||||||
npm version ${PACKAGE_VERSION} --allow-same-version
|
|
||||||
npm publish'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
success {
|
||||||
|
postSuccess();
|
||||||
|
}
|
||||||
always {
|
always {
|
||||||
emailext (
|
postAlways();
|
||||||
body: '${DEFAULT_CONTENT}',
|
|
||||||
mimeType: 'text/html',
|
|
||||||
replyTo: '${DEFAULT_REPLYTO}',
|
|
||||||
subject: '${DEFAULT_SUBJECT}',
|
|
||||||
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -4,6 +4,7 @@ pipeline {
|
|||||||
agent any;
|
agent any;
|
||||||
options {
|
options {
|
||||||
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
||||||
|
disableConcurrentBuilds abortPrevious: true;
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('FarmmapsLibBuildAll') {
|
stage('FarmmapsLibBuildAll') {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "farmmaps-lib-app",
|
"name": "farmmaps-lib-app",
|
||||||
"version": "3.2.1",
|
"version": "3.3.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
|
Loading…
Reference in New Issue
Block a user