source: branches/dev-5693/external/build_externals/Jenkins/Assimulo-Jenkinsfile @ 12047

Last change on this file since 12047 was 12047, checked in by randersson, 13 months ago

#5693 Updates configs and makefile for assimulo and verified that everything builds locally and on jenkins. Also added new directory name for building specified target, which now is prefixed with used python version.

File size: 1.8 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
19
20node ('docker') {
21    checkoutJM("${JM_SVN_PATH}")
22    buildAssimuloDocker("centos", "wheel",  "jenkins_centos_config")
23    buildAssimuloDocker("centos", "folder", "jenkins_centos_config")
24    buildAssimuloDocker("ubuntu", "wheel",  "jenkins_ubuntu_config")
25    buildAssimuloDocker("ubuntu", "folder", "jenkins_ubuntu_config")
26}
27node("JMODELICA-SDK-1.13.2") {
28    checkoutJM("${JM_SVN_PATH}")
29    for (module in ["superlu", "blas", "lapack", "sundials"]) {
30        buildThirdPartyFromMake(null, null, "${pwd()}/build", module)
31    }
32    buildAssimulo(null, null, "${pwd()}/build", "folder")
33    buildAssimulo(null, null, "${pwd()}/build", "wheel")
34}
35
36
Note: See TracBrowser for help on using the repository browser.