Changeset 8d63649


Ignore:
Timestamp:
Apr 29, 2019, 11:16:41 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
b7b573c
Parents:
cbef27b
Message:

Jenkins has to unconditionnaly plot otherwise the plot get URLs get invalidated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    rcbef27b r8d63649  
    170170        build_stage('Publish') {
    171171
    172                 if( !Settings.Publish ) return
    173                 if( !Settings.RunBenchmark ) {
    174                         echo 'No results to publish!!!'
    175                         return
    176                 }
     172                if( !Settings.RunBenchmark ) { echo 'No results to publish!!!' }
    177173
    178174                def groupCompile = new PlotGroup('Compilation', 'seconds', true)
     
    180176
    181177                //Then publish the results
    182                 do_plot('compile'  , groupCompile    , 'Compilation')
    183                 do_plot('ctxswitch', groupConcurrency, 'Context Switching')
    184                 do_plot('mutex'    , groupConcurrency, 'Mutual Exclusion')
    185                 do_plot('signal'   , groupConcurrency, 'Internal and External Scheduling')
     178                do_plot(Settings.RunBenchmark && Settings.Publish, 'compile'  , groupCompile    , 'Compilation')
     179                do_plot(Settings.RunBenchmark && Settings.Publish, 'ctxswitch', groupConcurrency, 'Context Switching')
     180                do_plot(Settings.RunBenchmark && Settings.Publish, 'mutex'    , groupConcurrency, 'Mutual Exclusion')
     181                do_plot(Settings.RunBenchmark && Settings.Publish, 'signal'   , groupConcurrency, 'Internal and External Scheduling')
    186182        }
    187183}
     
    437433}
    438434
    439 def do_plot(String file, PlotGroup group, String title) {
    440         echo "file is ${BuildDir}/benchmark/${file}.csv, group ${group}, title ${title}"
    441         dir("${BuildDir}/benchmark/") {
    442                 plot csvFileName: "cforall-${env.BRANCH_NAME}-${file}.csv",
    443                         csvSeries: [[
     435def do_plot(boolean silent, String file, PlotGroup group, String title) {
     436
     437        def series = silent ? [] : [[
    444438                                file: "${file}.csv",
    445439                                exclusionValues: '',
     
    447441                                inclusionFlag: 'OFF',
    448442                                url: ''
    449                         ]],
     443                        ]];
     444
     445        echo "file is ${BuildDir}/benchmark/${file}.csv, group ${group}, title ${title}"
     446        dir("${BuildDir}/benchmark/") {
     447                plot csvFileName: "cforall-${env.BRANCH_NAME}-${file}.csv",
     448                        csvSeries: series,
    450449                        group: "${group.name}",
    451450                        title: "${title}",
Note: See TracChangeset for help on using the changeset viewer.