blob: 913cc4d287ffd2c0586a9b882f248ebc47c47e78 (
plain)
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
|
pipeline {
agent any
options {
skipDefaultCheckout()
}
stages {
stage('setup'){
steps {
cleanWs()
dir("panel-ui") {
checkout scmGit(
branches: [[name: env.BRANCH_NAME]],
extensions: [ cloneOption(shallow: true) ],
userRemoteConfigs: [
[credentialsId: 'abdeb570-b708-44f3-b857-8a6b06ed9822',
url: 'ssh://code.g-r-l.com:6611/panel-ui']
],
)
}
}
}
stage('npm.install') {
steps {
dir("panel-ui") {
sh "/usr/local/bin/npm install"
}
}
}
stage('npm.test') {
steps {
dir("panel-ui") {
sh "/usr/local/bin/npm run test"
}
}
}
}
}
|