-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
48 lines (36 loc) · 1.3 KB
/
Copy pathJenkinsfile
File metadata and controls
48 lines (36 loc) · 1.3 KB
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
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: setup_numBuildsToKeep()))
}
environment {
// Load the correct JenkinsPipelines library based on the branch name.
loadLibraries = setupSharedLibrary()
branchName = "${env.BRANCH_NAME}"
}
stages {
stage('Build') {
steps {
run_NPMInstall()
//sh "cp -r node_modules/@ricohcc/environment/dist/ricoh-cloud src/"
//sh "cp -r node_modules/@ricohcc/banner/dist/ricoh-banner src/"
//sh "chmod 777 build_scripts/build_jenkins.sh && build_scripts/build_jenkins.sh"
//generate dashboard-ui.zip
//sh "rm dashboard-ui.zip || true"
//zip zipFile: 'dashboard-ui.zip', archive: false, dir: 'dist'
//sh "zipinfo dashboard-ui.zip"
run_NPMPublish("1.0")
}
}
//stage('Build dashboardWebServer') {
// steps {
// build job: "cloud.Supervisor.Backend.dashboardWebServer/${branchName}"
// }
//}
}
post {
failure { sendEmailNotificationsFailure() }
changed { sendEmailNotificationsChange() }
always { sendEmailNotifications() }
}
}