-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathJenkinsfile
More file actions
48 lines (43 loc) · 797 Bytes
/
Jenkinsfile
File metadata and controls
48 lines (43 loc) · 797 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
36
37
38
39
40
41
42
43
44
45
46
47
48
#!groovy
pipeline {
tools {
nodejs 'nodejs_20.11.1'
}
agent {
node {
label 'new'
}
}
stages {
stage('Setup') {
when {
branch "master"
}
steps {
sh "npm ci"
}
}
stage('Build Production') {
when {
branch "master"
}
steps {
sh "npm run clean"
sh "npm run build:demo"
}
}
stage('Deploy Production') {
when {
branch "master"
}
steps {
sh "rsync -e 'ssh -o StrictHostKeyChecking=no' -va --rsync-path='mkdir -p /home/dashboard/web-sdk-demo/current/public/ && rsync' --delete ./demo/ dashboard@jenkins-2.adjust.com://home/dashboard/web-sdk-demo/current/public/"
}
}
}
post {
always {
cleanWs()
}
}
}