1234567891011121314151617181920212223242526 |
- pipeline {
- agent {
- docker {
- image 'node:16-alpine'
- args '-p 3000:3000'
- }
- }
- stages {
- stage('Build') {
- steps {
- sh 'npm install'
- sh 'npm run build:prod'
- }
- }
- stage('Test') {
- steps {
- echo 'Testing..'
- }
- }
- stage('Deploy') {
- steps {
- echo 'Deploying....'
- }
- }
- }
- }
|