|
@@ -0,0 +1,28 @@
|
|
1
|
+pipeline {
|
|
2
|
+ agent {
|
|
3
|
+ node {
|
|
4
|
+ label 'ClubDit'
|
|
5
|
+ customWorkspace '/var/www/html/psicoadmin'
|
|
6
|
+ }
|
|
7
|
+ }
|
|
8
|
+ stages {
|
|
9
|
+ stage('install dependencies') {
|
|
10
|
+ steps {
|
|
11
|
+ sh 'npm install'
|
|
12
|
+ }
|
|
13
|
+ }
|
|
14
|
+ stage('build') {
|
|
15
|
+ steps {
|
|
16
|
+ sh 'npm run build'
|
|
17
|
+ }
|
|
18
|
+ }
|
|
19
|
+ }
|
|
20
|
+ post {
|
|
21
|
+ always {
|
|
22
|
+ slackSend channel: '#sysproy2',
|
|
23
|
+ color: currentBuild.currentResult == 'SUCCESS' ? 'good' : 'danger',
|
|
24
|
+ message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} More info at: ${env.BUILD_URL}"
|
|
25
|
+ }
|
|
26
|
+ }
|
|
27
|
+
|
|
28
|
+}
|