2023-04-06 14:47:51 +02:00
|
|
|
@Library('cadoles') _
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
label 'docker'
|
|
|
|
filename 'Dockerfile'
|
|
|
|
dir 'misc/jenkins'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Run unit tests') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh 'make GOTEST_ARGS="-timeout 10m -count=1 -v" test'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Release') {
|
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'develop'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
withCredentials([
|
|
|
|
usernamePassword([
|
|
|
|
credentialsId: 'forge-jenkins',
|
|
|
|
usernameVariable: 'GITEA_RELEASE_USERNAME',
|
|
|
|
passwordVariable: 'GITEA_RELEASE_PASSWORD'
|
|
|
|
])
|
|
|
|
]) {
|
2023-10-02 23:26:16 +02:00
|
|
|
sh 'make .mktools'
|
2023-10-03 05:22:44 +02:00
|
|
|
sh "MKT_PROJECT_VERSION_BRANCH_NAME=${env.BRANCH_NAME} make gitea-release"
|
2023-04-06 14:47:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|