Changes in / [83dccdd:15b53fc]


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/FullBuild

    r83dccdd r15b53fc  
    2828// Main loop of the compilation
    2929//===========================================================================================================
     30node ('master'){
     31        try {
     32                //Prevent the build from exceeding 30 minutes
     33                timeout(60) {
    3034
    31 try {
    32         //Prevent the build from exceeding 30 minutes
    33         timeout(60) {
     35                        //Wrap build to add timestamp to command line
     36                        wrap([$class: 'TimestamperBuildWrapper']) {
    3437
    35                 //Wrap build to add timestamp to command line
    36                 wrap([$class: 'TimestamperBuildWrapper']) {
     38                                stage 'Build'
    3739
    38                         stage 'Build'
     40                                        parallel (
     41                                                x64: { node ('master') {
     42                                                        build job: 'Cforall/master',                                    \
     43                                                                parameters: [                                           \
     44                                                                        [$class: 'BooleanParameterValue',               \
     45                                                                          name: 'isFullBuild',                          \
     46                                                                          value: true],                                         \
     47                                                                        [$class: 'StringParameterValue',                \
     48                                                                          name: 'buildArchitecture',                    \
     49                                                                          value: '64-bit']                              \
     50                                                                ]
     51                                                }},
     52                                                x32: { node ('master') {
     53                                                        build job: 'Cforall/master',                                    \
     54                                                                parameters: [                                           \
     55                                                                        [$class: 'BooleanParameterValue',               \
     56                                                                          name: 'isFullBuild',                          \
     57                                                                          value: true],                                         \
     58                                                                        [$class: 'StringParameterValue',                \
     59                                                                          name: 'buildArchitecture',                    \
     60                                                                          value: '32-bit']                              \
     61                                                                ]
     62                                                }}
     63                                        )
    3964
    40                                 results = [null, null]
    41 
    42                                 parallel (
    43                                         x64: {
    44                                                 result[0] = build job: 'Cforall/master',                                        \
    45                                                         parameters: [                                           \
    46                                                                 [$class: 'BooleanParameterValue',               \
    47                                                                   name: 'isFullBuild',                          \
    48                                                                   value: true],                                         \
    49                                                                 [$class: 'StringParameterValue',                \
    50                                                                   name: 'buildArchitecture',                    \
    51                                                                   value: '64-bit']                              \
    52                                                         ]
    53                                         },
    54                                         x32:
    55                                          {
    56                                                 result[1] = build job: 'Cforall/master',                                        \
    57                                                         parameters: [                                           \
    58                                                                 [$class: 'BooleanParameterValue',               \
    59                                                                   name: 'isFullBuild',                          \
    60                                                                   value: true],                                         \
    61                                                                 [$class: 'StringParameterValue',                \
    62                                                                   name: 'buildArchitecture',                    \
    63                                                                   value: '32-bit']                              \
    64                                                         ]
    65                                         }
    66                                 )
    67 
    68                                 results.each { result ->
    69                                         echo(result.result)
    70                                         echo(result.absoluteUrl)
    71 
    72                                         if (result.result != 'SUCCESS') {
    73                                                 echo( 'Build Succeded' )
    74                                         }
    75                                 }
    76 
    77                         //Push latest changes to do-lang repo
    78                         push_build()
     65                                //Push latest changes to do-lang repo
     66                                //push_build()
     67                        }
    7968                }
    8069        }
    81 }
    8270
    83 //If an exception is caught we need to change the status and remember to
    84 //attach the build log to the email
    85 catch (Exception caughtError) {
    86         //rethrow error later
    87         err = caughtError
     71        //If an exception is caught we need to change the status and remember to
     72        //attach the build log to the email
     73        catch (Exception caughtError) {
     74                //rethrow error later
     75                err = caughtError
    8876
    89         //Store the result of the build log
    90         currentBuild.result = "${status_prefix} FAILURE".trim()
     77                //Store the result of the build log
     78                currentBuild.result = "${status_prefix} FAILURE".trim()
    9179
    92         //Send email to notify the failure
    93         promote_email(currentBuild.result)
    94 }
     80                //Send email to notify the failure
     81                //promote_email(currentBuild.result)
     82        }
    9583
    96 finally {
    97         //Must re-throw exception to propagate error
    98         if (err) {
    99                 throw err
     84        finally {
     85                //Must re-throw exception to propagate error
     86                if (err) {
     87                        throw err
     88                }
    10089        }
    10190}
  • src/tests/test.py

    r83dccdd r15b53fc  
    205205
    206206                print(text, file = out);
    207                 sys.stdout.flush()
    208                 sys.stderr.flush()
    209 
    210207
    211208        #clean the workspace
Note: See TracChangeset for help on using the changeset viewer.