forked from syncfusion/ej2-react-nextjs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
33 lines (26 loc) · 710 Bytes
/
Jenkinsfile
File metadata and controls
33 lines (26 loc) · 710 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
#!groovy
node('EJ2Angularsbnode18') {
try {
deleteDir()
stage('Import') {
git url: 'http://github.com/essential-studio/ej2-groovy-scripts.git', branch: 'master', credentialsId: env.GithubCredentialID;
shared = load 'src/shared.groovy'
}
stage('Checkout') {
checkout scm
}
stage('Install') {
sh 'npm install'
}
stage('Build') {
sh 'npm run build'
}
shared.gitlabCommitStatus('success')
deleteDir()
}
catch(Exception e) {
sh 'gulp ci-report-mail --option Failure'
shared.throwError(e)
deleteDir()
}
}