forked from milvus-io/milvus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yellow Shine <[email protected]>
- Loading branch information
1 parent
31d0c84
commit ed23ff2
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@Library('[email protected]') _ | ||
|
||
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.ut arch: 'amd64', | ||
isPr: isPr, | ||
gitMode: gitMode , | ||
gitBaseRef: gitBaseRef, | ||
pullRequestNumber: "$env.CHANGE_ID", | ||
make_cmd: "make clean && make build-cpp-with-coverage", | ||
test_entrypoint: "make codecov-go-without-build", | ||
codecov_report_name: "go-unit-test", | ||
codecov_files: "./go_coverage.txt", | ||
tekton_log_timeout: '30m' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
container('tkn') { | ||
script { | ||
tekton.sure_stop() | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |