Changeset 8fe6040


Ignore:
Timestamp:
Dec 4, 2020, 3:10:55 PM (3 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:
6b293bd
Parents:
9c4ad67
Message:

Distribute now prints the version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/Distribute

    r9c4ad67 r8fe6040  
    2626                wrap([$class: 'TimestamperBuildWrapper']) {
    2727
    28                         final commit = prepare_build()
     28                        final (commit, build) = prepare_build()
    2929
    3030                        node('x64') {
     
    3535
    3636                                Tools.Checkout( commit )
     37
     38                                final version = GetVersion( build )
    3739                        }
    3840
     
    7476// Main compilation routines
    7577//===========================================================================================================
     78def GetVersion(build) {
     79        final pver = "sed 's/AC_INIT(\[cfa-cc\],\[\(.*\)\],\[cforall@plg.uwaterloo.ca\])/\1/;t;d' ${SrcDir} configure.ac"
     80        final version = "${pver}.${build}"
    7681
     82        echo "Package Version: ${pver}"
     83        echo "Build   Version: ${build}"
     84        echo "Long    Version: ${version}"
    7785
    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
     86        return version
     87}
    8588
    86 //              echo GitLogMessage()
    87 //      }
    88 // }
    8989
    9090//===========================================================================================================
     
    107107                                        defaultValue: '',                                                               \
    108108                                ],                                                                                              \
     109                                [$class: 'StringParameterDefinition',                                           \
     110                                        description: 'Build Number to put into the version',                    \
     111                                        name: 'Build',                                                                  \
     112                                        defaultValue: '0',                                                              \
     113                                ],                                                                                              \
    109114                        ],
    110115                ]])
     
    121126        echo "Distributing git commit ${ref}"
    122127
    123         return params.GitRef
     128        return [params.GitRef, params.Build]
    124129}
    125130
Note: See TracChangeset for help on using the changeset viewer.