blob: 713823930fa86913946ee8c6e047ecf15388d897 [file] [log] [blame]
Patrick Pschorn59e25802019-01-15 14:41:03 +01001pipeline {
2 agent {
3 kubernetes {
Patrick Pschorn5389fc02019-01-16 12:07:06 +01004 label 'my-agent-pod'
Patrick Pschorn59e25802019-01-15 14:41:03 +01005 yaml """
6apiVersion: v1
7kind: Pod
8spec:
9 containers:
10 - name: maven
11 image: maven:alpine
mdammf36e86b2019-03-06 13:11:45 +010012 resources:
mdamm76552732019-03-06 15:04:29 +010013 requests:
14 memory: "2Gi"
15 cpu: "1"
16 limits:
17 memory: "2Gi"
18 cpu: "1"
19 command:
Patrick Pschorn59e25802019-01-15 14:41:03 +010020 - cat
21 tty: true
22"""
23 }
24 }
25 stages {
26 stage('Run maven') {
27 steps {
28 container('maven') {
Thomas Psota82762232019-06-18 14:23:24 +020029 sh '''
Thomas Psotafe882332019-06-18 14:52:08 +020030cd "sdks/java/basys.sdk/"
Thomas Psota9820d762019-06-18 15:04:00 +020031mvn -B clean verify
Thomas Psota82762232019-06-18 14:23:24 +020032 '''
Patrick Pschorn59e25802019-01-15 14:41:03 +010033 }
34 }
35 }
36 }
Patrick Pschorn042f9702019-01-15 13:34:52 +010037}