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