dynk8s-provisioner/ci/Jenkinsfile

54 lines
1.1 KiB
Groovy

pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
}
}
options {
buildDiscarder logRotator(numToKeepStr: '5')
disableConcurrentBuilds()
}
stages {
stage('Test') {
steps {
container('build') {
sh '. ci/test.sh'
}
}
}
stage('Build') {
steps {
container('build') {
sh '. ci/build.sh'
}
}
post {
success {
dir('target/release') {
archiveArtifacts 'dynk8s-provisioner'
}
}
}
}
stage('Container') {
steps {
container('podman') {
sh '. ci/container.sh'
}
}
}
stage('Publish') {
steps {
container('podman') {
sh '. ci/publish.sh'
}
}
}
}
}