-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
44 lines (31 loc) · 843 Bytes
/
Jenkinsfile
File metadata and controls
44 lines (31 loc) · 843 Bytes
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
pipeline {
agent any
stages {
stage("Build Frontend"){
steps{
sh "cd frontend && sudo npm install"
sh "cd frontend && sudo npm run build"
}
}
stage("test frontend"){
steps {
//sh "cd frontend && npm i"
sh "cd frontend && npm run test"
}
}
stage("Deploy App"){
steps{
sh "sudo cp -fr ${WORKSPACE}/frontend/* /home/ehmeeops/reputationmanagement.web/frontend/"
sh "sudo systemctl restart repute.service"
}
}
}
post{
failure{
emailext attachLog: true,
to: 'mhizxeryl@gmail.com@gmail.com',
subject: '${BUILD_TAG} Build failed',
body: '${BUILD_TAG} Build Failed \nMore Info can be found here: ${BUILD_URL} or in the log file below'
}
}
}