milvus_build.groovy 1.7 KB
Newer Older
1
container('milvus-build-env') {
X
xj.lin 已提交
2
    timeout(time: 40, unit: 'MINUTES') {
3 4 5
        gitlabCommitStatus(name: 'Build Engine') {
            dir ("milvus_engine") {
                try {
6
                    checkout([$class: 'GitSCM', branches: [[name: "${SEMVER}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'SubmoduleOption',disableSubmodules: false,parentCredentials: true,recursiveSubmodules: true,reference: '',trackingSubmodules: false]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${params.GIT_USER}", url: "git@192.168.1.105:megasearch/milvus.git", name: 'origin', refspec: "+refs/heads/${SEMVER}:refs/remotes/origin/${SEMVER}"]]])
Q
quicksilver 已提交
7 8 9 10
                    dir ("cpp/thirdparty/knowhere/knowhere") {
                        checkout([$class: 'GitSCM', branches: [[name: "${SEMVER}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'SubmoduleOption',disableSubmodules: false,parentCredentials: true,recursiveSubmodules: true,reference: '',trackingSubmodules: false]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${params.GIT_USER}", url: "git@192.168.1.105:megasearch/knowhere.git", name: 'origin', refspec: "+refs/heads/${SEMVER}:refs/remotes/origin/${SEMVER}"]]])
                    }

11
                    dir ("cpp") {
Q
quicksilver 已提交
12 13
                        sh "git config --global user.email \"test@zilliz.com\""
                        sh "git config --global user.name \"test\""
Q
quicksilver 已提交
14
                        sh "./build.sh -t ${params.BUILD_TYPE} -j -u -c"
15 16 17 18 19 20 21 22 23
                    }
                } catch (exc) {
                    updateGitlabCommitStatus name: 'Build Engine', state: 'failed'
                    throw exc
                }
            }
        }
    }
}