commit | author | age | ||
e05f91 | 1 | pipeline{ |
OB | 2 | agent{ |
3 | label "nodejs" | |
4 | } | |
5 | stages{ | |
6 | stage("Install dependencies"){ | |
7 | steps{ | |
8 | sh "npm ci" | |
9 | } | |
10 | } | |
11 | ||
12 | stage("Check Style"){ | |
13 | steps{ | |
b8e1c5 | 14 | sh "echo NOP npm run lint" |
e05f91 | 15 | } |
OB | 16 | } |
17 | ||
18 | stage("Test"){ | |
19 | steps{ | |
20 | sh "npm test" | |
21 | } | |
22 | } | |
23 | ||
644725 | 24 | stage("Deploy") { |
OB | 25 | steps { |
26 | sh ''' | |
27 | oc project olbohlen-greetings | |
28 | oc start-build greeting-service --follow --wait | |
29 | ''' | |
30 | } | |
31 | } | |
e05f91 | 32 | } |
OB | 33 | } |