Add a simple Jenkinsfile to build things

This commit is contained in:
R. Tyler Croy 2017-12-19 22:17:27 -08:00
parent c8af2844c8
commit 36260ace9d
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 44 additions and 0 deletions

44
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,44 @@
#!/usr/bin/env groovy
pipeline {
agent { label 'linux && docker' }
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
timeout(time: 3, unit: 'HOURS')
}
stages {
stage('Create builder') {
steps {
sh 'make builder'
}
}
stage('Build necessary plugins') {
when { branch 'master' }
steps {
sh 'make plugins'
}
}
stage('Create master container') {
when { branch 'master' }
steps {
sh 'make master'
}
post {
always {
archiveArtifacts artifacts: 'build/git-refs.txt', fingerprint: true
}
}
}
stage('Test') {
steps {
sh 'make check'
}
}
}
post {
always {
sh 'make clean'
}
}
}