-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
65 lines (62 loc) · 2.07 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
pipeline {
agent any
stages {
stage('Clean Workspace') {
steps {
cleanWs(deleteDirs: true)
}
}
stage('Checkout SCM') {
steps {
checkout scm
}
}
stage('Codecov Functional Testing') {
steps {
sh 'echo "here steps to add"'
}
}
stage('Codecov Code Quality') {
steps {
sh 'echo "here steps to add"'
}
}
/* stage('Codecov Quality Gates') {
steps{
timeout(time: 1, unit: 'HOURS'){
script{
def qualityGate = waitForQualityGate()
if(qualityGate.status != 'OK') {
error "Project build failed due to quality gate failure: ${qualityGate.status}"
}
}
}
}
}*/
// stage('Generate documentation') {
// steps {
// sh 'git checkout main'
// nodejs(nodeJSInstallationName: 'NodeJs') {
// sh 'npm config ls'
// sh 'npm i'
// sh 'mkdir -p ./docs/jsdoc-output/'
// sh 'chown -R jenkins:jenkins docs'
// sh 'ls -lah ./docs/jsdoc-output/'
// sh 'npm run docs'
// sh 'ls -l ./docs/jsdoc-output/'
// }
// sh 'git status && git pull && git config --global user.email "jenkins@jenkins.com" && git config --global user.name "Jenkins User" && git add . && git commit -m "test for jenkins" && git push git@github.com:Plato-solutions/Impressionist.git'
// }
// }
stage('publish') {
steps {
sh 'git checkout main'
nodejs(nodeJSInstallationName: 'NodeJs') {
sh 'npm config ls'
sh 'npm i'
sh 'npm run publish'
}
}
}
}
}