Compare commits

...

4 Commits

Author SHA1 Message Date
Willem Dantuma 05292f1e5d Depend on released versions
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details
FarmMaps/FarmMapsLib/pipeline/head There was a failure building this commit Details
2021-06-03 09:53:41 +02:00
Willem Dantuma e672e28795 Allow same version in master
FarmMaps/FarmMapsLib/pipeline/head This commit looks good Details
2021-06-03 09:47:17 +02:00
Willem Dantuma 4b7b639046 Remobve build number from version
FarmMaps/FarmMapsLib/pipeline/head There was a failure building this commit Details
2021-06-03 09:42:59 +02:00
Willem Dantuma 34b067fd28 Add jenkins file for master
FarmMaps/FarmMapsLib/pipeline/head There was a failure building this commit Details
2021-06-03 09:37:13 +02:00
3 changed files with 59 additions and 5 deletions

54
Jenkinsfile vendored 100644
View File

@ -0,0 +1,54 @@
pipeline {
agent any
environment {
PACKAGE_VERSION_PREFIX=sh(script: 'jq .version package.json |sed "s/\\"//g"', returnStdout: true).trim()
PACKAGE_VERSION="${PACKAGE_VERSION_PREFIX}"
}
stages {
stage('npm install'){
steps {
sh '''rm -rf node_modules/
npm install
cd projects/common
npm install
cd ../common-map
npm install
cd ../common-map3d
npm install
'''
}
}
stage('build'){
steps {
sh '''ng build common
ng build common-map
ng build common-map3d'''
}
}
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 {
always {
emailext (
body: '${DEFAULT_CONTENT}',
mimeType: 'text/html',
replyTo: '${DEFAULT_REPLYTO}',
subject: '${DEFAULT_SUBJECT}',
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
)
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "farmmaps-lib-app",
"version": "0.0.1",
"version": "1.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
@ -19,9 +19,9 @@
"@angular/platform-browser": "~10.2.4",
"@angular/platform-browser-dynamic": "~10.2.4",
"@angular/router": "~10.2.4",
"@farmmaps/common": ">=0.0.1-prerelease.575 <0.0.1",
"@farmmaps/common-map": ">=0.0.1-prerelease.575 <0.0.1",
"@farmmaps/common-map3d": ">=0.0.1-prerelease.575 <0.0.1",
"@farmmaps/common": "~1.0",
"@farmmaps/common-map": "~1.0",
"@farmmaps/common-map3d": "~1.0",
"@microsoft/signalr": "^3.1.3",
"@ng-bootstrap/ng-bootstrap": "^7.0",
"@ngrx/effects": "^10.0",

View File

@ -14,7 +14,7 @@
"@ngrx/router-store": "^10.0",
"@ngrx/store": "^10.0",
"tassign": "^1.0.0",
"@farmmaps/common": ">=1.0.0.0",
"@farmmaps/common": "~1.0",
"ngx-openlayers": "1.0.0-next.17",
"ol": "6.4.3"
}