FarmMapsLib/Jenkinsfile.develop
Willem Dantuma 7562851e1d
Some checks failed
FarmMaps.Develop/FarmMapsLib/develop There was a failure building this commit
Add npm publish stage
2019-07-16 16:32:58 +02:00

34 lines
693 B
Plaintext

pipeline {
agent any
stages {
stage('npm install'){
steps {
sh '''npm install'''
}
}
stage('build'){
steps {
sh '''ng build common
cp projects/common/src/assets/resumable.js dist/common/fesm5'''
}
}
stage('npm publish'){
steps {
sh '''cd dist/common
npm publish'''
}
}
}
post {
always {
emailext (
body: '${DEFAULT_CONTENT}',
mimeType: 'text/html',
replyTo: '${DEFAULT_REPLYTO}',
subject: '${DEFAULT_SUBJECT}',
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
)
}
}
}