-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathJenkinsfile
More file actions
35 lines (35 loc) · 890 Bytes
/
Jenkinsfile
File metadata and controls
35 lines (35 loc) · 890 Bytes
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 {
docker {
image 'node:16-buster-slim'
args '-p 3000:3000'
}
}
environment {
CI = 'true'
}
stages {
stage('Build') {
steps {
sh 'npm install'
}
}
stage('Test') {
steps {
sh './jenkins/scripts/test.sh'
}
}
stage('Manual Approval') {
steps {
input message: 'Lanjutkan ke tahap Deploy? (klik "Proceed" (melanjutkan eksekusi pipeline ke tahap Deploy) atau "Abort" (menghentikan eksekusi pipeline))'
}
}
stage('Deploy') {
steps {
sh './jenkins/scripts/deliver.sh'
sleep 60
sh './jenkins/scripts/kill.sh'
}
}
}
}