Patrick Pschorn | 59e2580 | 2019-01-15 14:41:03 +0100 | [diff] [blame] | 1 | pipeline { |
2 | agent { | ||||
3 | kubernetes { | ||||
Patrick Pschorn | 5389fc0 | 2019-01-16 12:07:06 +0100 | [diff] [blame] | 4 | label 'my-agent-pod' |
Patrick Pschorn | 59e2580 | 2019-01-15 14:41:03 +0100 | [diff] [blame] | 5 | yaml """ |
6 | apiVersion: v1 | ||||
7 | kind: Pod | ||||
8 | spec: | ||||
9 | containers: | ||||
10 | - name: maven | ||||
11 | image: maven:alpine | ||||
12 | command: | ||||
13 | - cat | ||||
14 | tty: true | ||||
15 | """ | ||||
16 | } | ||||
17 | } | ||||
18 | stages { | ||||
19 | stage('Run maven') { | ||||
20 | steps { | ||||
21 | container('maven') { | ||||
22 | sh 'mvn -f ./sdks/java/basys.sdk/pom.xml clean verify' | ||||
23 | } | ||||
24 | } | ||||
25 | } | ||||
26 | } | ||||
Patrick Pschorn | 042f970 | 2019-01-15 13:34:52 +0100 | [diff] [blame] | 27 | } |