Changeset b19fdb9


Ignore:
Timestamp:
Dec 28, 2020, 2:16:03 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
ee56a4f
Parents:
ac5816d
Message:

FullBuild? should now properly show errors when distribution fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/FullBuild

    rac5816d rb19fdb9  
    3232
    3333                        stage('Package') {
    34                                 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number.toString())]
     34                                trigger_dist( commitId, currentBuild.number.toString() )
    3535                        }
    3636                }
     
    103103}
    104104
     105def trigger_dist(String commitId, String build) {
     106        def result = build job: 'Cforall_Distribute_Ref',       \
     107                parameters: [                                           \
     108                        string(name: 'GitRef', value: commitId),        \
     109                        string(name: 'Build' , value: build)    \
     110                ]
     111
     112        echo(result.result)
     113
     114        if(result.result != 'SUCCESS') {
     115                sh("wget -q -O - https://cforall.uwaterloo.ca/jenkins/job/Cforall_Distribute_Ref/${result.number}/consoleText")
     116                error(result.result)
     117        }
     118}
     119
    105120//===========================================================================================================
    106121//Routine responsible of sending the email notification once the build is completed
Note: See TracChangeset for help on using the changeset viewer.