Ver código fonte

add jenkins file

amenpunk 4 anos atrás
pai
commit
5e19c8c995
1 arquivos alterados com 28 adições e 0 exclusões
  1. 28 0
      Jenkinsfile

+ 28 - 0
Jenkinsfile

@@ -0,0 +1,28 @@
+pipeline {
+    agent {
+        node {
+            label 'ClubDit'
+            customWorkspace '/var/www/html/psicoadmin'
+        }
+    }
+    stages {
+        stage('install dependencies') {
+            steps {
+                sh 'npm install'
+            }
+        }
+        stage('build') {
+            steps {
+                sh 'npm run build'
+            }
+        }
+    }
+    post {
+        always {
+            slackSend channel: '#sysproy2',
+                color: currentBuild.currentResult == 'SUCCESS' ? 'good' : 'danger',
+                message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} More info at: ${env.BUILD_URL}"
+        }
+    }
+
+}