2019-01-24 21:57:33 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo 'Building..'
|
2019-02-12 17:04:27 +00:00
|
|
|
sh 'npm install'
|
2019-02-13 21:27:38 +00:00
|
|
|
sh 'ng build --project shared'
|
2019-02-13 21:37:06 +00:00
|
|
|
sh 'ng build --project globalnav'
|
|
|
|
sh 'ng build --project page-not-found'
|
2019-02-12 17:04:27 +00:00
|
|
|
sh 'ng build --project account --configuration test'
|
2019-01-24 21:57:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing..'
|
|
|
|
echo 'No testing included in this pipeline'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying....'
|
2019-01-25 01:24:52 +00:00
|
|
|
withCredentials([sshUserPrivateKey(credentialsId: '6413826d-79f6-4d03-9902-ee1b73a96efd', keyFileVariable: 'JENKINS_SSH_KEY', passphraseVariable: '', usernameVariable: 'SERVER_USER')]) {
|
2019-01-25 02:00:37 +00:00
|
|
|
sh 'scp -r dist/* root@157.230.91.255:/var/www/'
|
2019-01-24 23:53:49 +00:00
|
|
|
}
|
2019-01-24 21:57:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|