2019-07-16 14:29:37 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('npm install'){
|
|
|
|
steps {
|
|
|
|
sh '''npm install'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('build'){
|
|
|
|
steps {
|
|
|
|
sh '''ng build common
|
2019-07-16 14:30:44 +00:00
|
|
|
cp projects/common/src/assets/resumable.js dist/common/fesm5'''
|
2019-07-16 14:29:37 +00:00
|
|
|
}
|
|
|
|
}
|
2019-07-16 14:32:58 +00:00
|
|
|
stage('npm publish'){
|
|
|
|
steps {
|
|
|
|
sh '''cd dist/common
|
|
|
|
npm publish'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-16 14:29:37 +00:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
emailext (
|
|
|
|
body: '${DEFAULT_CONTENT}',
|
|
|
|
mimeType: 'text/html',
|
|
|
|
replyTo: '${DEFAULT_REPLYTO}',
|
|
|
|
subject: '${DEFAULT_SUBJECT}',
|
|
|
|
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|