forked from glh-henrique/poc-micro-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
36 lines (34 loc) · 862 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
36
#!/bin/groovy
pipeline {
agent any
tools {nodejs 'nodeJs'}
stages {
stage("install packages") {
steps {
echo 'install packages...'
sh 'npm install --g lerna'
sh 'rm -rf node_modules'
sh 'git pull origin master'
sh 'git submodule foreach git pull origin master'
sh 'lerna bootstrap'
}
}
stage("test") {
steps {
echo 'testing application...'
}
}
stage("build") {
steps {
echo 'building application...'
sh 'pwd'
sh 'yarn workspaces run build'
}
}
stage("deploy") {
steps {
echo 'deployng application...'
}
}
}
}