First try to implement prerelease build number
Some checks failed
FarmMaps.Develop/FarmMapsLib/develop There was a failure building this commit

This commit is contained in:
Willem Dantuma 2019-07-16 17:20:59 +02:00
parent e2d6c14705
commit 65924c1b85
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
pipeline {
agent any
environment {
PACKAGE_VERSION_PREFIX=sh(script: 'jq .version package.json |sed "s/\"//g"', returnStdout: true).trim()
PACKAGE_VERSION="${PACKAGE_VERSION_PREFIX + '-prerelease.' + env.BUILD_NUMBER}"
}
stages {
stage('npm install'){
steps {
@ -15,6 +19,7 @@ pipeline {
stage('npm publish'){
steps {
sh '''cd dist/common
npm version ${PACKAGE_VERSION}
npm publish'''
}
}

View File

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