milvus_build_no_ut.groovy 1.5 KB
Newer Older
1
container('milvus-build-env') {
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}"]]])
7

8
                    dir ("cpp") {
9 10
                        sh "git config --global user.email \"test@zilliz.com\""
                        sh "git config --global user.name \"test\""
Q
quicksilver 已提交
11
                        withCredentials([usernamePassword(credentialsId: "${params.JFROG_USER}", usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
J
Jeff 已提交
12 13
                            sh "./build.sh -l"
                            sh "export JFROG_ARTFACTORY_URL='${params.JFROG_ARTFACTORY_URL}' && export JFROG_USER_NAME='${USERNAME}' && export JFROG_PASSWORD='${PASSWORD}' && ./build.sh -t ${params.BUILD_TYPE} -j"
Q
quicksilver 已提交
14
                        }
15 16 17 18 19 20 21 22 23
                    }
                } catch (exc) {
                    updateGitlabCommitStatus name: 'Build Engine', state: 'failed'
                    throw exc
                }
            }
        }
    }
}