Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/Distribute

    rad915e0 r6c9e0bc  
    2626                wrap([$class: 'TimestamperBuildWrapper']) {
    2727
    28                         final commit, build
    29                         (commit, build) = prepare_build()
     28                        final commit = prepare_build()
    3029
    3130                        node('x64') {
     
    3635
    3736                                Tools.Checkout( commit )
    38 
    39                                 final version = GetVersion( build )
    4037                        }
    4138
     
    7774// Main compilation routines
    7875//===========================================================================================================
    79 def GetVersion(build) {
    80         final pver = sh(
    81                 returnStdout: true,
    82                 script: "sed 's/AC_INIT(\\[cfa-cc\\],\\[\\(.*\\)\\],\\[cforall@plg.uwaterloo.ca\\])/\\1/;t;d' ${SrcDir}/configure.ac"
    83         ).trim()
    8476
    85         final version = "${pver}.${build}"
    8677
    87         echo "Package Version: ${pver}"
    88         echo "Build   Version: ${build}"
    89         echo "Long    Version: ${version}"
     78//Compilation script is done here but environnement set-up and error handling is done in main loop
     79// def checkout() {
     80//      build_stage('Checkout', true) {
     81//              //checkout the source code and clean the repo
     82//              final scmVars = checkout scm
     83//              Settings.GitNewRef = scmVars.GIT_COMMIT
     84//              Settings.GitOldRef = scmVars.GIT_PREVIOUS_COMMIT
    9085
    91         return version
    92 }
    93 
     86//              echo GitLogMessage()
     87//      }
     88// }
    9489
    9590//===========================================================================================================
     
    112107                                        defaultValue: '',                                                               \
    113108                                ],                                                                                              \
    114                                 [$class: 'StringParameterDefinition',                                           \
    115                                         description: 'Build Number to put into the version',                    \
    116                                         name: 'Build',                                                                  \
    117                                         defaultValue: '0',                                                              \
    118                                 ],                                                                                              \
    119109                        ],
    120110                ]])
     
    131121        echo "Distributing git commit ${ref}"
    132122
    133         return [params.GitRef, params.Build]
     123        return params.GitRef
    134124}
    135125
Note: See TracChangeset for help on using the changeset viewer.