forked from captjt/jenkins-pipeline-express
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
40 lines (37 loc) · 887 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pipeline {
agent {
docker {
image 'node:8'
args '-p 3000:3000 -u 0:0'
}
}
stages {
stage('Checkout') {
steps{
echo 'Getting source code...'
checkout scm
}
}
stage('Build') {
steps {
echo 'Installing Dependencies...'
sh 'npm i'
}
}
stage('Test') {
stages {
stage('Unit testing') {
steps {
echo 'Executing Unit tests...'
sh 'npm test'
}
}
stage('Integration testing') {
steps {
echo 'Executing Integration tests...'
}
}
}
}
}
}