Jenkinsfile 495 B

1234567891011121314151617181920212223242526
  1. pipeline {
  2. agent {
  3. docker {
  4. image 'node:16-alpine'
  5. args '-p 3000:3000'
  6. }
  7. }
  8. stages {
  9. stage('Build') {
  10. steps {
  11. sh 'npm install'
  12. sh 'npm run build:prod'
  13. }
  14. }
  15. stage('Test') {
  16. steps {
  17. echo 'Testing..'
  18. }
  19. }
  20. stage('Deploy') {
  21. steps {
  22. echo 'Deploying....'
  23. }
  24. }
  25. }
  26. }