blob: 5590199f82263a8a99887034a862556a424d10a8 [file] [log] [blame]
// -*- mode: groovy -*-
pipeline {
agent {
kubernetes {
cloud 'kubernetes'
label 'example-v1'
containerTemplate {
name 'debian'
image 'buildpack-deps:stretch'
ttyEnabled true
command '/bin/cat'
}
}
}
stages {
stage('Prepare') {
steps {
container('debian') {
ansiColor('xterm') {
sh """
apt-get update && apt-get install -y --no-install-recommends build-essential colormake
"""
}
}
}
}
stage('Build') {
steps {
container('debian') {
ansiColor('xterm') {
sh """
colormake
"""
}
}
}
}
stage('Archive artifacts') {
steps {
container('baker') {
archiveArtifacts 'hello-world-ng'
}
}
}
}
}