source: branches/dev-5819/external/build_externals/Jenkins/Assimulo-Jenkinsfile @ 13766

Last change on this file since 13766 was 13766, checked in by aramle, 8 weeks ago

#5819 Updating to build MSVS on Jenkins.

File size: 2.0 KB
Line 
1// This loads the Jenkins pipeline library found in the ci folder.
2def url = scm.getLocations()[0].remote
3def base_url = url - "external/build_externals/Jenkins"
4echo base_url
5library identifier: 'build_externals@ci', retriever: modernSCM([$class: 'SubversionSCMSource', remoteBase: url, credentialsId: ''])
6library identifier: 'JModelica@ci', retriever: modernSCM([$class: 'SubversionSCMSource', remoteBase: base_url, credentialsId: ''])
7library identifier: 'build_thirdparties@ci', retriever: modernSCM([$class: 'SubversionSCMSource', remoteBase: "${base_url}/ThirdParty/build_thirdparties/Jenkins", credentialsId: ''])
8
9// Extract branch info from url variable (this assumes that this Jenkinsfile
10// has been checked out directly by Jenkins as part of pipeline build).
11(JM_SVN_PATH, JM_SVN_TYPE, JM_SVN_NAME) = extractBranchInfo("https://svn.jmodelica.org", base_url)
12
13// Set build name:
14currentBuild.displayName += " (" + (env.TRIGGER_CAUSE == null ? "MANUAL" : env.TRIGGER_CAUSE) + ")"
15
16// Set discard policy
17properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: ''))])
18
19node("JMODELICA-SDK-1.13.2 && VisualStudio2015") {
20    checkoutJM("${JM_SVN_PATH}")
21    for (module in ["superlu", "sundials"]) {
22        buildThirdPartyFromMake(null, null, "${pwd()}/build", module, ["64msvs"])
23    }
24
25}
26
27node ('docker') {
28    checkoutJM("${JM_SVN_PATH}")
29    buildAssimuloDocker("centos", "wheel",  "jenkins_centos_config")
30    buildAssimuloDocker("centos", "folder", "jenkins_centos_config")
31    buildAssimuloDocker("ubuntu", "wheel",  "jenkins_ubuntu_config")
32    buildAssimuloDocker("ubuntu", "folder", "jenkins_ubuntu_config")
33}
34node("JMODELICA-SDK-1.13.2") {
35    checkoutJM("${JM_SVN_PATH}")
36    for (module in ["superlu", "blas", "lapack", "sundials"]) {
37        buildThirdPartyFromMake(null, null, "${pwd()}/build", module)
38    }
39    buildAssimulo(null, null, "${pwd()}/build", "folder")
40    buildAssimulo(null, null, "${pwd()}/build", "wheel")
41}
42
43
Note: See TracBrowser for help on using the repository browser.