25 lines
542 B
Groovy
25 lines
542 B
Groovy
pipeline {
|
|
agent {
|
|
docker { image 'circleci/node:10' }
|
|
}
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh "sudo chown -R 1003:100 "/.npm""
|
|
sh "npm install"
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh "npm test"
|
|
}
|
|
}
|
|
stage('Deploy') {
|
|
steps {
|
|
echo 'Deploying....'
|
|
}
|
|
}
|
|
}
|
|
}
|