30 lines
445 B
Groovy
30 lines
445 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
tools {
|
|
go '1.22'
|
|
}
|
|
|
|
environment {
|
|
NEXUS = credentials('jenkins_nexus')
|
|
GITEA_TOKEN = credentials('jenkins_gitea_token')
|
|
}
|
|
|
|
options {
|
|
timeout(time: 30, unit: "MINUTES")
|
|
}
|
|
|
|
stages {
|
|
stage('Build and Test') {
|
|
steps {
|
|
sh 'make'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|