Reac front end for psicometric app

Jenkinsfile 787B

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