mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
enhance: ut for cpp code (#36941)
Signed-off-by: Yellow Shine <sammy.huang@zilliz.com>
This commit is contained in:
parent
346510ed23
commit
0be81d95aa
58
ci/jenkins/UT-CPP.groovy
Normal file
58
ci/jenkins/UT-CPP.groovy
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
@Library('jenkins-shared-library@tekton') _
|
||||||
|
|
||||||
|
def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
|
||||||
|
def milvus_helm_chart_version = '4.2.8'
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
options {
|
||||||
|
skipDefaultCheckout true
|
||||||
|
parallelsAlwaysFailFast()
|
||||||
|
buildDiscarder logRotator(artifactDaysToKeepStr: '30')
|
||||||
|
preserveStashes(buildCount: 5)
|
||||||
|
disableConcurrentBuilds(abortPrevious: true)
|
||||||
|
}
|
||||||
|
agent {
|
||||||
|
kubernetes {
|
||||||
|
cloud '4am'
|
||||||
|
yaml pod
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('meta') {
|
||||||
|
steps {
|
||||||
|
container('jnlp') {
|
||||||
|
script {
|
||||||
|
isPr = env.CHANGE_ID != null
|
||||||
|
gitMode = isPr ? 'merge' : 'fetch'
|
||||||
|
gitBaseRef = isPr ? "$env.CHANGE_TARGET" : "$env.BRANCH_NAME"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('build') {
|
||||||
|
steps {
|
||||||
|
container('tkn') {
|
||||||
|
script {
|
||||||
|
def job_name = tekton.cpp_ut arch: 'amd64',
|
||||||
|
isPr: isPr,
|
||||||
|
gitMode: gitMode ,
|
||||||
|
gitBaseRef: gitBaseRef,
|
||||||
|
pullRequestNumber: "$env.CHANGE_ID",
|
||||||
|
make_cmd: "make clean && make USE_ASAN=OFF build-cpp-with-coverage",
|
||||||
|
test_entrypoint: "./scripts/run_cpp_codecov.sh",
|
||||||
|
codecov_files: "./lcov_output.info,./it_coverage.txt"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
container('tkn') {
|
||||||
|
script {
|
||||||
|
tekton.sure_stop()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user