[skip e2e] Add CI-Mode to separate nightly & pr (#14718)

Signed-off-by: Jenny Li <jing.li@zilliz.com>
This commit is contained in:
Jenny Li 2022-01-06 14:27:20 +08:00 committed by GitHub
parent 25b00230c8
commit 35e3371556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -43,6 +43,7 @@ pipeline {
DISABLE_KIND = true DISABLE_KIND = true
HUB = "registry.milvus.io/milvus" HUB = "registry.milvus.io/milvus"
JENKINS_BUILD_ID = "${env.BUILD_ID}" JENKINS_BUILD_ID = "${env.BUILD_ID}"
CI_MODE="nightly"
} }
stages { stages {

View File

@ -34,6 +34,7 @@ pipeline {
DISABLE_KIND = true DISABLE_KIND = true
HUB = 'registry.milvus.io/milvus' HUB = 'registry.milvus.io/milvus'
JENKINS_BUILD_ID = "${env.BUILD_ID}" JENKINS_BUILD_ID = "${env.BUILD_ID}"
CI_MODE="pr"
} }
stages { stages {

View File

@ -36,12 +36,22 @@ function milvus_ci_release_name(){
name+="-${CHANGE_ID:-}" name+="-${CHANGE_ID:-}"
fi fi
# Add Jenkins BUILD_ID into Name # Add Jenkins BUILD_ID into Name
if [[ -n ${JENKINS_BUILD_ID:-} ]]; then if [[ -n ${JENKINS_BUILD_ID:-} ]]; then
name+="-${JENKINS_BUILD_ID}" name+="-${JENKINS_BUILD_ID}"
fi fi
if [[ "${CI_MODE:-}" == "nightly" ]]; then
# Nightly CI
name+="-n"
else
# Pull Request CI
name+="-pr"
fi
export MILVUS_HELM_RELEASE_NAME=${name} export MILVUS_HELM_RELEASE_NAME=${name}
echo ${name} echo ${name}
} }