Skip to content

Commit 964a102

Browse files
authored
Update Jenkinsfile
1 parent 2848a98 commit 964a102

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Jenkinsfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pipeline {
2222
}
2323
stage('npm build'){
2424
steps{
25+
sh "npm test -- --coverage"
2526
sh "npm run build"
2627
}
2728
}
@@ -77,14 +78,6 @@ pipeline {
7778
post {
7879
always {
7980
sh 'echo "This will always run"'
80-
}
81-
success {
82-
sh "touch test"
83-
sh "git config --global user.email 'jenkins@jenkins.com'"
84-
sh "git config --global user.name 'Jenkins'"
85-
sh "git add test"
86-
sh "git commit -m 'test'"
87-
sh "git push origin HEAD:$BRANCH_NAME"
8881
}
8982
}
9083
}

0 commit comments

Comments
 (0)