blob: fc6bb7662f5ea8e5a974f6f65e49ea495633f838 [file] [log] [blame]
Matthias Andreas Benkard33147302018-04-09 21:22:22 +02001// -*- mode: groovy -*-
2pipeline {
3
4 agent {
5 kubernetes {
6 cloud 'kubernetes'
7 label 'example-v1'
8 containerTemplate {
9 name 'debian'
10 image 'buildpack-deps:stretch'
11 ttyEnabled true
12 command '/bin/cat'
13 }
14 }
15 }
16
17 stages {
18
19 stage('Prepare') {
20 steps {
21 container('debian') {
22 ansiColor('xterm') {
23 sh """
24 apt-get update && apt-get install -y --no-install-recommends build-essential colormake
25 """
26 }
27 }
28 }
29 }
30
31 stage('Build') {
32 steps {
33 container('debian') {
34 ansiColor('xterm') {
35 sh """
36 colormake
37 """
38 }
39 }
40 }
41 }
42
43 stage('Archive artifacts') {
44 steps {
45 container('baker') {
Matthias Andreas Benkard38610ae2018-04-10 20:39:24 +020046 archiveArtifacts 'exe/hello-world-ng'
Matthias Andreas Benkard33147302018-04-09 21:22:22 +020047 }
48 }
49 }
50
51 }
52}