2019-11-19 17:19:25 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2019-11-19 17:22:16 +01:00
|
|
|
sh "cd test"
|
|
|
|
echo 'Building..'
|
2019-11-19 17:19:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
2019-11-19 17:30:21 +01:00
|
|
|
sh 'npm install'
|
|
|
|
sh 'npm test'
|
2019-11-19 17:19:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying....'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|