Disable common-map temporarily
Some checks failed
FarmMaps.Develop/FarmMapsLib/develop There was a failure building this commit

This commit is contained in:
Willem Dantuma 2019-11-25 14:47:20 +01:00
parent efe38aba62
commit e57b8297c0

View File

@ -1,47 +1,45 @@
pipeline { pipeline {
agent any agent any
environment { environment {
PACKAGE_VERSION_PREFIX=sh(script: 'jq .version package.json |sed "s/\\"//g"', returnStdout: true).trim() PACKAGE_VERSION_PREFIX=sh(script: 'jq .version package.json |sed "s/\\"//g"', returnStdout: true).trim()
PACKAGE_VERSION="${PACKAGE_VERSION_PREFIX + '-prerelease.' + env.BUILD_NUMBER}" PACKAGE_VERSION="${PACKAGE_VERSION_PREFIX + '-prerelease.' + env.BUILD_NUMBER}"
} }
stages { stages {
stage('npm install'){ stage('npm install'){
steps { steps {
sh '''npm install sh '''npm install
cd projects/common cd projects/common
npm install npm install
cd ../common-map cd ../common-map
npm install npm install
''' '''
} }
} }
stage('build'){ stage('build'){
steps { steps {
sh '''ng build common sh '''ng build common
ng build common-map''' ng build common-map'''
} }
} }
stage('npm publish'){ stage('npm publish'){
steps { steps {
sh '''cd dist/common sh '''cd dist/common
npm version ${PACKAGE_VERSION} npm version ${PACKAGE_VERSION}
npm publish npm publish
cd ../common-map '''
npm version ${PACKAGE_VERSION} }
npm publish''' }
}
} }
post {
} always {
post { emailext (
always { body: '${DEFAULT_CONTENT}',
emailext ( mimeType: 'text/html',
body: '${DEFAULT_CONTENT}', replyTo: '${DEFAULT_REPLYTO}',
mimeType: 'text/html', subject: '${DEFAULT_SUBJECT}',
replyTo: '${DEFAULT_REPLYTO}', to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
subject: '${DEFAULT_SUBJECT}', )
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']]) }
) }
}
}
} }