diff --git a/ci/jenkins/Jenkinsfile b/ci/jenkins/Jenkinsfile index 5475037026..e8e06d0f4d 100644 --- a/ci/jenkins/Jenkinsfile +++ b/ci/jenkins/Jenkinsfile @@ -190,10 +190,10 @@ pipeline { } } post { - always { + unsuccessful { script { boolean isNightlyTest = isTimeTriggeredBuild() - if (!currentBuild.resultIsBetterOrEqualTo('SUCCESS') && isNightlyTest) { + if (isNightlyTest) { // Send an email only if the build status has changed from green/unstable to red emailext subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', diff --git a/ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml b/ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml index 4a7b970468..f40a433374 100644 --- a/ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml +++ b/ci/jenkins/pod/milvus-gpu-version-centos7-build-env-pod.yaml @@ -26,7 +26,8 @@ spec: limits: memory: "12Gi" cpu: "6.0" - nvidia.com/gpu: 1 + # nvidia.com/gpu: 1 + aliyun.com/gpu-mem: 2 # GiB requests: memory: "8Gi" cpu: "4.0" diff --git a/ci/jenkins/pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml b/ci/jenkins/pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml index a739a344e0..298e0db6fd 100644 --- a/ci/jenkins/pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml +++ b/ci/jenkins/pod/milvus-gpu-version-ubuntu18.04-build-env-pod.yaml @@ -25,7 +25,8 @@ spec: limits: memory: "12Gi" cpu: "6.0" - nvidia.com/gpu: 1 + # nvidia.com/gpu: 1 + aliyun.com/gpu-mem: 2 # GiB requests: memory: "8Gi" cpu: "4.0"