mosek 10.0.0

Rust API for MOSEK optimization tools

node ("ulfborg") {
    def brn = env.gitlabSourceBranch
    branchname = ( brn == null ?
            "origin/master" :
             ( !brn.startsWith("refs/") ? brn :
               "origin/$brn" ) )

    currentBuild.displayName = branchname

    //stage "checkout" {
    checkout changelog: false,
             poll: true,
             scm: ([$class: 'GitSCM',
                    branches: [[name: branchname]],
                    doGenerateSubmoduleConfigurations: false,
                    extensions: [[$class: 'CloneOption',
                                  noTags: false,
                                  reference: ''],
                                 [$class: 'CheckoutOption'],
                                 //[$class: 'RelativeTargetDirectory',
                                 // relativeTargetDir: 'Mosek.rs'],
                                 [$class: 'SubmoduleOption',
                                  disableSubmodules: false,
                                  parentCredentials: false,
                                  recursiveSubmodules: true,
                                  reference: '',
                                  trackingSubmodules: false]],
                        gitTool: 'Default',
                        userRemoteConfigs: [[credentialsId: '65bca1cb-66bd-4983-9aaa-0aec83b1491b',
                                             url: 'git@git-lab.mosek.intranet:ulfw/mosek.rust.git']]])

    def mosekver     = readFile "MOSEKVERSION"
    def mosekjobname = readFile "JOBNAME"
    mosekver = mosekver.trim()
    mosekjobname = mosekjobname.trim()
    copyArtifacts filter: 'bld/hudson/distro/mosektoolslinux64x86.tar.bz2',
                  fingerprintArtifacts: true,
                  projectName: "${mosekjobname}/Distro-pipeline",
                  selector: lastSuccessful()
    sh "tar xf bld/hudson/distro/mosektoolslinux64x86.tar.bz2"

    gitlabCommitStatus (connection: gitLabConnection('gitlab-api'),
                        name: "Mosek.rs") {

      sh """
export PATH=/remote/public/linux/64-x86/rust/current/bin:$PATH
export LD_LIBRARY_PATH=mosek/$mosekver/tools/platform/linux64x86/bin
export MOSEK_INST_BASE=.
cargo test
"""
    }
}