commit | author | age | ||
8148e6 | 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{ | |
14 | sh "npm run lint" | |
15 | } | |
16 | } | |
17 | ||
18 | stage("Test"){ | |
19 | steps{ | |
20 | sh "npm test" | |
21 | } | |
22 | } | |
23 | ||
24 | // Add the Release stage here | |
f6eb66 | 25 | stage("Release") { |
OB | 26 | steps { |
27 | sh ''' | |
28 | oc project olbohlen-greetings | |
29 | oc start-build greeting-console --follow --wait | |
30 | ''' | |
31 | } | |
32 | } | |
8148e6 | 33 | } |
OB | 34 | } |