-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
64 lines (57 loc) · 1.58 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
pipeline {
agent {
label 'graphdb-jenkins-node'
}
tools {
nodejs 'nodejs-14.17.0'
}
stages {
stage('Installing ontotext-yasgui') {
steps {
sh 'npm install yarn'
sh 'npm install'
}
}
stage('Building ontotext-yasgui component') {
steps {
sh 'npm run build'
}
}
stage('Starting eslint') {
steps {
sh 'npm run lint'
}
}
stage('Starting dev server') {
steps {
sh 'npm run start &'
}
}
stage('Acceptance') {
steps {
sh 'npm run cy:run'
}
}
}
post {
failure {
echo "___________________________________________________"
emailext(
to: env.ghprbActualCommitAuthorEmail,
from: "Jenkins <[email protected]>",
subject: '''[Jenkins] $PROJECT_NAME - Build #$BUILD_NUMBER - $BUILD_STATUS!''',
mimeType: 'text/html',
body: '''${SCRIPT, template="groovy-html.template"}'''
)
}
unstable {
emailext(
to: env.ghprbActualCommitAuthorEmail,
from: "Jenkins <[email protected]>",
subject: '''[Jenkins] $PROJECT_NAME - Build #$BUILD_NUMBER - $BUILD_STATUS!''',
mimeType: 'text/html',
body: '''${SCRIPT, template="groovy-html.template"}'''
)
}
}
}