diff --git a/ci/jenkins/Jenkinsfile b/ci/jenkins/Jenkinsfile index 59a40bbfc3395cbb4c3b07ffd0d1f6d6fdc62ffc..90b5e836e6bac2799ceecd7646e0dbaff15e72fa 100644 --- a/ci/jenkins/Jenkinsfile +++ b/ci/jenkins/Jenkinsfile @@ -17,6 +17,7 @@ pipeline { parameters{ choice choices: ['Release', 'Debug'], description: 'Build Type', name: 'BUILD_TYPE' + choice choices: ['False', 'True'], description: 'Is Manual Trigger Or Not', name: 'IS_MANUAL_TRIGGER_TYPE' string defaultValue: 'registry.zilliz.com', description: 'DOCKER REGISTRY URL', name: 'DOKCER_REGISTRY_URL', trim: true string defaultValue: 'ba070c98-c8cc-4f7c-b657-897715f359fc', description: 'DOCKER CREDENTIALS ID', name: 'DOCKER_CREDENTIALS_ID', trim: true string defaultValue: 'http://192.168.1.201/artifactory/milvus', description: 'JFROG ARTFACTORY URL', name: 'JFROG_ARTFACTORY_URL', trim: true @@ -172,7 +173,7 @@ pipeline { container('milvus-test-env') { script { boolean isNightlyTest = isTimeTriggeredBuild() - if (isNightlyTest) { + if (isNightlyTest || "${params.IS_MANUAL_TRIGGER_TYPE}" == "True") { load "${env.WORKSPACE}/ci/jenkins/step/singleDevNightlyTest.groovy" load "${env.WORKSPACE}/ci/jenkins/step/shardsDevNightlyTest.groovy" } else { @@ -190,7 +191,7 @@ pipeline { script { load "${env.WORKSPACE}/ci/jenkins/step/cleanupSingleDev.groovy" boolean isNightlyTest = isTimeTriggeredBuild() - if (isNightlyTest) { + if (isNightlyTest || "${params.IS_MANUAL_TRIGGER_TYPE}" == "True") { load "${env.WORKSPACE}/ci/jenkins/step/cleanupShardsDev.groovy" } }