forked from carlosmarind/backend-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
35 lines (35 loc) · 877 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pipeline {
agent any
stages {
stage('Build and test') {
agent {
docker {
image 'node:20.11.1-alpine3.19'
reuseNode true
}
}
stages {
stage('Instalar dependencias') {
steps {
sh 'npm install'
}
}
stage('ejecucion de test') {
steps {
sh 'npm run test'
}
}
stage('ejecucion de build') {
steps {
sh 'npm run build'
}
}
}
}
stage('deploy'){
steps {
sh 'docker build -t backend-base:latest .'
}
}
}
}