enhance: [ci]get log from loki instead of api-server (#38158)

Signed-off-by: Yellow Shine <sammy.huang@zilliz.com>
pull/38112/head
yellow-shine 2024-12-05 09:40:50 +08:00 committed by GitHub
parent 5768dbbb5d
commit 34d71289e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 4 deletions

View File

@ -1,4 +1,4 @@
@Library('jenkins-shared-library@v0.71.0') _
@Library('jenkins-shared-library@tekton') _
def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
@ -25,6 +25,10 @@ pipeline {
yaml pod
}
}
environment {
LOKI_ADDR = 'http://loki-1-loki-distributed-gateway.loki.svc.cluster.local'
LOKI_CLIENT_RETRIES = 3
}
stages {
stage('meta') {
steps {

View File

@ -1,4 +1,4 @@
@Library('jenkins-shared-library@v0.71.0') _
@Library('jenkins-shared-library@tekton') _
def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
def milvus_helm_chart_version = '4.2.8'
@ -18,6 +18,12 @@ pipeline {
)
}
environment {
LOKI_ADDR = 'http://loki-1-loki-distributed-gateway.loki.svc.cluster.local'
LOKI_CLIENT_RETRIES = 3
}
agent {
kubernetes {
cloud '4am'
@ -50,7 +56,7 @@ pipeline {
gitBaseRef: gitBaseRef,
pullRequestNumber: "$env.CHANGE_ID",
suppress_suffix_of_image_tag: true,
make_cmd: "make clean && make install USE_ASAN=ON use_disk_index=ON",
make_cmd: 'make clean && make install USE_ASAN=ON use_disk_index=ON',
images: '["milvus","pytest","helm"]'
milvus_image_tag = tekton.query_result job_name, 'milvus-image-tag'

View File

@ -1,4 +1,4 @@
@Library('jenkins-shared-library@v0.71.0') _
@Library('jenkins-shared-library@tekton') _
def pod = libraryResource 'io/milvus/pod/tekton-4am.yaml'
def milvus_helm_chart_version = '4.2.8'
@ -19,6 +19,12 @@ pipeline {
)
}
environment {
LOKI_ADDR = 'http://loki-1-loki-distributed-gateway.loki.svc.cluster.local'
LOKI_CLIENT_RETRIES = 3
}
agent {
kubernetes {
cloud '4am'