From 3485bec74e8251195d8054bcb3356a5996e8b956 Mon Sep 17 00:00:00 2001 From: Yellow Shine Date: Thu, 17 Oct 2024 10:34:01 +0800 Subject: [PATCH] enhance: ut for cpp code Signed-off-by: Yellow Shine --- ci/jenkins/UT-CPP.groovy | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 ci/jenkins/UT-CPP.groovy diff --git a/ci/jenkins/UT-CPP.groovy b/ci/jenkins/UT-CPP.groovy new file mode 100644 index 0000000000000..76c5570bfec9f --- /dev/null +++ b/ci/jenkins/UT-CPP.groovy @@ -0,0 +1,56 @@ +@Library('jenkins-shared-library@v0.62.0') _ + +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" + + } + } + } + post { + always { + container('tkn') { + script { + tekton.sure_stop() + } + } + } + } + } + } +}