Changeset 1cc4390


Ignore:
Timestamp:
Feb 7, 2019, 4:50:24 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
deferred_resn
Parents:
4cf2472
Message:

Re-enable Jenkins for deferred-resn branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r4cf2472 r1cc4390  
    44// Main loop of the compilation
    55//===========================================================================================================
    6 node ('master'){
    7 
     6
     7node('master') {
    88        // Globals
    99        BuildDir  = pwd tmp: true
     
    2626                        Settings = prepare_build()
    2727
    28                         clean()
    29 
    30                         checkout()
    31 
    32                         notify_server(0)
    33 
    34                         build()
    35 
    36                         test()
    37 
    38                         benchmark()
    39 
    40                         build_doc()
    41 
    42                         publish()
     28                        node(Settings.Architecture.node) {
     29                                BuildDir  = pwd tmp: true
     30                                SrcDir    = pwd tmp: false
     31
     32                                clean()
     33
     34                                checkout()
     35
     36                                notify_server(0)
     37
     38                                build()
     39
     40                                test()
     41
     42                                benchmark()
     43
     44                                build_doc()
     45
     46                                publish()
     47                        }
     48
     49                        // Update the build directories when exiting the node
     50                        BuildDir  = pwd tmp: true
     51                        SrcDir    = pwd tmp: false
    4352
    4453                        notify_server(45)
     
    7584        }
    7685}
    77 
    7886//===========================================================================================================
    7987// Main compilation routines
     
    145153                dir (BuildDir) {
    146154                        //Append bench results
    147                         sh "make --no-print-directory -C benchmark jenkins githash=${Settings.GitNewRef} arch=${Settings.Architecture} | tee ${SrcDir}/bench.json"
     155                        sh "${SrcDir}/benchmark/jenkins.sh ${Settings.GitNewRef} ${Settings.Architecture} ${BuildDir}/bench.json"
    148156                }
    149157        }
     
    171179
    172180                //Then publish the results
    173                 sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true'
     181                sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @${BuildDir}/bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true'
    174182        }
    175183}
     
    181189        if (!Settings || !Settings.GitOldRef || !Settings.GitNewRef) return "\nERROR retrieveing git information!\n"
    182190
    183         sh "${SrcDir}/tools/PrettyGitLogs.sh ${BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}"
     191        sh "${SrcDir}/tools/PrettyGitLogs.sh ${SrcDir} ${BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}"
    184192
    185193        def gitUpdate = readFile("${BuildDir}/GIT_UPDATE")
     
    250258        public String name
    251259        public String flags
    252 
    253         Arch_Desc(String name, String flags) {
     260        public String node
     261
     262        Arch_Desc(String name, String flags, String node) {
    254263                this.name  = name
    255264                this.flags = flags
     265                this.node  = node
    256266        }
    257267}
     
    292302                switch( param.Architecture ) {
    293303                        case 'x64':
    294                                 this.Architecture = new Arch_Desc('x64', '--host=x86_64')
     304                                this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'x64')
    295305                        break
    296306                        case 'x86':
    297                                 this.Architecture = new Arch_Desc('x86', '--host=i386')
     307                                this.Architecture = new Arch_Desc('x86', '--host=i386', 'x86')
    298308                        break
    299309                        default :
     
    371381                ]])
    372382
     383        // It's unfortunate but it looks like we need to checkout the entire repo just to get the pretty git printer
     384        checkout scm
     385
    373386        final settings = new BuildSettings(params, env.BRANCH_NAME)
    374387
     
    398411        catch (Exception caughtError) {
    399412                err = caughtError //rethrow error later
    400                 sh 'cat *.log'
     413                sh 'cat build/*.log'
    401414        }
    402415        finally {
Note: See TracChangeset for help on using the changeset viewer.