forked from sahat/hackathon-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjenkinsfile
34 lines (33 loc) · 1.05 KB
/
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
node {
def commit_id
stages{
stage('Checkout') {
steps {
checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [
[name: '*/master']
], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [
[url: 'https://github.com/deva95/chat-app.git']
]]
}
}
stage('Build') {
steps {
sh 'npm install'
}
}
stage('Continous Testing - Unit Test') {
steps {
sh 'npm run test-mochaawesome'
// publish html
publishHTML target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'mochawesome-report',
reportFiles: 'mochawesome.html',
reportName: 'Unit Testing Report'
]
}
}
}
}