소스 검색

add jenkins file

amenpunk 3 년 전
부모
커밋
5e19c8c995
1개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. 28 0
      Jenkinsfile

+ 28 - 0
Jenkinsfile

@@ -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
+}