-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
39 lines (31 loc) · 869 Bytes
/
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
#!groovy
node('EJ2Angularlatest') {
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
shared.getProjectDetails()
shared.gitlabCommitStatus('running')
}
stage('Install') {
sh 'npm install'
}
stage('Build') {
sh 'gulp hide-license && npm run build && gulp finished'
}
stage('Publish') {
shared.publish()
}
shared.gitlabCommitStatus('success')
deleteDir()
}
catch(Exception e) {
shared.throwError(e)
deleteDir()
error('Build Failed')
}
}