mirror of https://github.com/codevalet/master
Add a simple Jenkinsfile to build things
This commit is contained in:
parent
c8af2844c8
commit
36260ace9d
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue