| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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'
- }
- }
- }
- }
- }
-
- }
- }
|