Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/Distribute

    r0a10dc8 rd198551  
    2121final commit, build
    2222node {
     23
    2324        //Wrap build to add timestamp to command line
    2425        wrap([$class: 'TimestamperBuildWrapper']) {
     
    3435
    3536                Tools.Clean()
     37
    3638                Tools.Checkout( commit )
     39
    3740                Version = GetVersion( build )
     41
    3842                Configure()
     43
    3944                Package()
     45
    4046                Test()
     47
    4148                Archive()
    4249        }
     
    5764        echo "Build   Version: ${build}"
    5865        echo "Long    Version: ${version}"
     66
    5967        return version
    6068}
     
    111119def prepare_build() {
    112120        // prepare the properties
    113         properties ([                                                                                   \
    114                 buildDiscarder(logRotator(                                                              \
    115                         artifactDaysToKeepStr: '',                                                      \
    116                         artifactNumToKeepStr: '',                                                       \
    117                         daysToKeepStr: '730',                                                           \
    118                         numToKeepStr: '1000'                                                            \
    119                 )),                                                                                     \
    120                 [$class: 'ParametersDefinitionProperty',                                                \
    121                         parameterDefinitions: [                                                         \
    122                                 [$class: 'StringParameterDefinition',                                   \
    123                                         description: 'The git commit to checkout',                      \
    124                                         name: 'GitRef',                                                 \
    125                                         defaultValue: '',                                               \
    126                                 ],                                                                      \
    127                                 [$class: 'StringParameterDefinition',                                   \
    128                                         description: 'Build Number to put into the version',            \
    129                                         name: 'Build',                                                  \
    130                                         defaultValue: '0',                                              \
    131                                 ],                                                                      \
     121        properties ([                                                                                                   \
     122                buildDiscarder(logRotator(                                                                              \
     123                        artifactDaysToKeepStr: '',                                                                      \
     124                        artifactNumToKeepStr: '',                                                                       \
     125                        daysToKeepStr: '730',                                                                           \
     126                        numToKeepStr: '1000'                                                                            \
     127                )),                                                                                                             \
     128                [$class: 'ParametersDefinitionProperty',                                                                \
     129                        parameterDefinitions: [                                                                         \
     130                                [$class: 'StringParameterDefinition',                                           \
     131                                        description: 'The git commit to checkout',                              \
     132                                        name: 'GitRef',                                                                 \
     133                                        defaultValue: '',                                                               \
     134                                ],                                                                                              \
     135                                [$class: 'StringParameterDefinition',                                           \
     136                                        description: 'Build Number to put into the version',                    \
     137                                        name: 'Build',                                                                  \
     138                                        defaultValue: '0',                                                              \
     139                                ],                                                                                              \
    132140                        ],
    133141                ]])
Note: See TracChangeset for help on using the changeset viewer.