mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 09:05:39 +00:00
51 lines
1002 B
Groovy
51 lines
1002 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
skipDefaultCheckout(true)
|
|
}
|
|
|
|
stages {
|
|
stage ('Pre-Build') {
|
|
steps {
|
|
cleanWs()
|
|
checkout scm
|
|
|
|
sh 'make go-tools'
|
|
}
|
|
}
|
|
|
|
stage('Compile') {
|
|
steps {
|
|
withEnv(["PATH+GO=/root/go/bin/"]) {
|
|
sh 'go env'
|
|
sh 'echo $PATH'
|
|
sh 'buf generate'
|
|
sh 'make daemon-compile'
|
|
}
|
|
}
|
|
}
|
|
|
|
stage ('Post-Compile') {
|
|
parallel {
|
|
stage('Codestyle') {
|
|
steps {
|
|
withEnv(["PATH+GO=/root/go/bin/"]) {
|
|
sh 'make daemon-codestyle'
|
|
sh 'make webui-codestyle'
|
|
}
|
|
}
|
|
}
|
|
stage('UnitTests') {
|
|
steps {
|
|
withEnv(["PATH+GO=/root/go/bin/"]) {
|
|
sh 'make daemon-unittests'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|