Skip to content

Commit 76c571e

Browse files
authored
Merge pull request gitroomhq#658 from hanzalawebdev/main
2 parents fe1f285 + 8cbf069 commit 76c571e

File tree

8 files changed

+639
-46
lines changed

8 files changed

+639
-46
lines changed

Jenkinsfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pipeline {
1212
}
1313
}
1414

15-
stage('Chechout Node.js and npm') {
15+
stage('Check Node.js and npm') {
1616
steps {
1717
script {
1818
sh "node -v"
@@ -27,6 +27,12 @@ pipeline {
2727
}
2828
}
2929

30+
stage('Run Unit Tests') {
31+
steps {
32+
sh 'npm test'
33+
}
34+
}
35+
3036
stage('Build Project') {
3137
steps {
3238
sh 'npm run build'
@@ -36,8 +42,9 @@ pipeline {
3642

3743
post {
3844
always {
39-
cleanWs(cleanWhenNotBuilt: false,
40-
notFailBuild: true)
45+
junit '**/reports/junit.xml'
46+
archiveArtifacts artifacts: 'reports/**', fingerprint: true
47+
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
4148
}
4249
success {
4350
echo 'Build completed successfully!'

0 commit comments

Comments
 (0)