Showing
1 changed file
with
10 additions
and
4 deletions
| 1 | pipeline { | 1 | pipeline { |
| 2 | agent any | 2 | agent any |
| 3 | stages { | 3 | stages { |
| 4 | - stage('STAGE 00') { | 4 | + stage('Build') { |
| 5 | steps { | 5 | steps { |
| 6 | - echo 'Olá, este é um exemplo de um Jenkinsfile!' | 6 | + sh 'npm install' |
| 7 | + sh 'npm run build' | ||
| 7 | } | 8 | } |
| 8 | } | 9 | } |
| 9 | - stage('STAGE 01') { | 10 | + stage('Test') { |
| 10 | steps { | 11 | steps { |
| 11 | - echo 'Olá, este é um exemplo de um Jenkinsfile!' | 12 | + sh 'npm test' |
| 13 | + } | ||
| 14 | + } | ||
| 15 | + stage('Deploy') { | ||
| 16 | + steps { | ||
| 17 | + sh 'npm deploy' | ||
| 12 | } | 18 | } |
| 13 | } | 19 | } |
| 14 | } | 20 | } |
-
Please register or login to post a comment