Jenkinsfile 749 B

123456789101112131415161718192021222324252627282930313233
  1. pipeline {
  2. agent {label '132'}
  3. stages {
  4. stage('preperation') {
  5. steps {
  6. sh 'npm install'
  7. sh 'npm run preperation:linux'
  8. }
  9. }
  10. stage('build server') {
  11. steps {
  12. sh 'id'
  13. sh 'npm run build_server'
  14. }
  15. }
  16. stage('build web') {
  17. steps {
  18. sh 'npm run build_web'
  19. }
  20. }
  21. stage('deploy') {
  22. steps {
  23. sh 'npm run deploy:linux'
  24. sh 'chmod 777 target/o2server/*.sh'
  25. }
  26. }
  27. stage('run') {
  28. steps {
  29. sh '/target/o2server/start_linux.sh'
  30. }
  31. }
  32. }
  33. }