Compare commits

..

No commits in common. "d9848a8ba3fa0c557685f46286cd46033b78d956" and "ff50650c28aaf9e9962b79da0628aaa950a2f55a" have entirely different histories.

3 changed files with 43 additions and 14 deletions

54
Jenkinsfile vendored
View File

@ -1,24 +1,54 @@
@Library('farmmaps-shared-library') _
pipeline { pipeline {
agent any; agent any
options { environment {
copyArtifactPermission projectNames: env.allProjectsArtifactPermission; PACKAGE_VERSION_PREFIX=sh(script: 'jq .version package.json |sed "s/\\"//g"', returnStdout: true).trim()
disableConcurrentBuilds abortPrevious: true; PACKAGE_VERSION="${PACKAGE_VERSION_PREFIX}"
} }
stages { stages {
stage('FarmmapsLibBuildAll') { stage('npm install'){
steps { steps {
stepFarmmapsLibBuildAll(); sh '''rm -rf node_modules/
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 {
postAlways(); emailext (
body: '${DEFAULT_CONTENT}',
mimeType: 'text/html',
replyTo: '${DEFAULT_REPLYTO}',
subject: '${DEFAULT_SUBJECT}',
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
)
} }
} }
} }

View File

@ -4,7 +4,6 @@ pipeline {
agent any; agent any;
options { options {
copyArtifactPermission projectNames: env.allProjectsArtifactPermission; copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
disableConcurrentBuilds abortPrevious: true;
} }
stages { stages {
stage('FarmmapsLibBuildAll') { stage('FarmmapsLibBuildAll') {

View File

@ -1,6 +1,6 @@
{ {
"name": "farmmaps-lib-app", "name": "farmmaps-lib-app",
"version": "3.3.0", "version": "3.2.1",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",