Changeset 58fe85a for Jenkins/FullBuild


Ignore:
Timestamp:
Jan 7, 2021, 3:27:00 PM (5 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, stuck-waitfor-destruct
Children:
2b4daf2, 64aeca0
Parents:
3c64c668 (diff), eef8dfb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into park_unpark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/FullBuild

    r3c64c668 r58fe85a  
    88        def err = null
    99
     10        final scmVars = checkout scm
     11        final commitId = scmVars.GIT_COMMIT
     12
    1013        try {
    1114                //Wrap build to add timestamp to command line
     
    1417                        stage('Build') {
    1518
    16                                 results = [null, null]
     19                                parallel (
     20                                        gcc_8_x86_old: { trigger_build( 'gcc-8',   'x86', false ) },
     21                                        gcc_7_x86_old: { trigger_build( 'gcc-7',   'x86', false ) },
     22                                        gcc_6_x86_old: { trigger_build( 'gcc-6',   'x86', false ) },
     23                                        gcc_9_x64_old: { trigger_build( 'gcc-9',   'x64', false ) },
     24                                        gcc_8_x64_old: { trigger_build( 'gcc-8',   'x64', false ) },
     25                                        gcc_7_x64_old: { trigger_build( 'gcc-7',   'x64', false ) },
     26                                        gcc_6_x64_old: { trigger_build( 'gcc-6',   'x64', false ) },
     27                                        gcc_5_x64_old: { trigger_build( 'gcc-5',   'x64', false ) },
     28                                        clang_x64_old: { trigger_build( 'clang',   'x64', false ) },
     29                                        clang_x64_new: { trigger_build( 'clang',   'x64', true  ) },
     30                                )
     31                        }
    1732
    18                                 parallel (
    19                                         clang_x86: { trigger_build( 'gcc-8',   'x86' ) },
    20                                         gcc_5_x86: { trigger_build( 'gcc-7',   'x86' ) },
    21                                         gcc_6_x86: { trigger_build( 'gcc-6',   'x86' ) },
    22                                         gcc_9_x64: { trigger_build( 'gcc-9',   'x64' ) },
    23                                         gcc_8_x64: { trigger_build( 'gcc-8',   'x64' ) },
    24                                         gcc_7_x64: { trigger_build( 'gcc-7',   'x64' ) },
    25                                         gcc_6_x64: { trigger_build( 'gcc-6',   'x64' ) },
    26                                         gcc_5_x64: { trigger_build( 'gcc-5',   'x64' ) },
    27                                         clang_x64: { trigger_build( 'clang',   'x64' ) },
    28                                 )
     33                        stage('Package') {
     34                                trigger_dist( commitId, currentBuild.number.toString() )
    2935                        }
    3036                }
     
    5965//===========================================================================================================
    6066
    61 def trigger_build(String cc, String arch) {
     67def trigger_build(String cc, String arch, boolean new_ast) {
    6268        def result = build job: 'Cforall/master',               \
    6369                parameters: [                                           \
     
    6874                          name: 'Architecture',                         \
    6975                          value: arch],                                 \
     76                        [$class: 'BooleanParameterValue',               \
     77                          name: 'NewAST',                               \
     78                          value: new_ast],                              \
    7079                        [$class: 'BooleanParameterValue',               \
    7180                          name: 'RunAllTests',                          \
     
    7988                        [$class: 'BooleanParameterValue',               \
    8089                          name: 'Publish',                              \
    81                           value: true],                                 \
     90                          value: true],                                         \
    8291                        [$class: 'BooleanParameterValue',               \
    8392                          name: 'Silent',                               \
     
    94103}
    95104
    96 //Helper routine to collect information about the git history
    97 def collect_git_info() {
     105def trigger_dist(String commitId, String buildNum) {
     106        def result = build job: 'Cforall_Distribute_Ref',       \
     107                parameters: [                                           \
     108                        string(name: 'GitRef', value: commitId),        \
     109                        string(name: 'Build' , value: buildNum) \
     110                ],                                                              \
     111                propagate: false
    98112
    99         //create the temporary output directory in case it doesn't already exist
    100         def out_dir = pwd tmp: true
    101         sh "mkdir -p ${out_dir}"
     113        echo(result.result)
    102114
    103         //parse git logs to find what changed
    104         dir("../Cforall_Full_Build@script") {
    105                 sh "git reflog > ${out_dir}/GIT_COMMIT"
     115        if(result.result != 'SUCCESS') {
     116                sh("wget -q -O - https://cforall.uwaterloo.ca/jenkins/job/Cforall_Distribute_Ref/${result.number}/consoleText")
     117                error(result.result)
    106118        }
    107         git_reflog = readFile("${out_dir}/GIT_COMMIT")
    108         gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]
    109         gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]
    110119}
    111120
Note: See TracChangeset for help on using the changeset viewer.