Changeset 0a10dc8 for Jenkins


Ignore:
Timestamp:
Sep 11, 2025, 11:35:17 PM (2 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
8730e57
Parents:
a307552
Message:

update groovy scripts to suppress warning messages

Location:
Jenkins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/Distribute

    ra307552 r0a10dc8  
    2121final commit, build
    2222node {
    23 
    2423        //Wrap build to add timestamp to command line
    2524        wrap([$class: 'TimestamperBuildWrapper']) {
     
    3534
    3635                Tools.Clean()
    37 
    3836                Tools.Checkout( commit )
    39 
    4037                Version = GetVersion( build )
    41 
    4238                Configure()
    43 
    4439                Package()
    45 
    4640                Test()
    47 
    4841                Archive()
    4942        }
     
    6457        echo "Build   Version: ${build}"
    6558        echo "Long    Version: ${version}"
    66 
    6759        return version
    6860}
     
    119111def prepare_build() {
    120112        // prepare the properties
    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                                 ],                                                                                              \
     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                                ],                                                                      \
    140132                        ],
    141133                ]])
  • Jenkins/Promote

    ra307552 r0a10dc8  
    11#!groovy
    22
     3// Globals
     4@Field def BuildDir   = pwd tmp: true
     5@Field def SrcDir     = pwd tmp: false
     6@Field def RemoteRepo = 'git@github.com:cforall/cforall.git'
     7@Field def ArchiveUrl = 'https://cforall.uwaterloo.ca/jenkins/job/Cforall_Distribute_Ref/lastSuccessfulBuild/artifact/*zip*/archive.zip'
     8
     9// Local variables
     10def err = null
     11def log_needed = false
     12
    313node {
    4         // Globals
    5         BuildDir   = pwd tmp: true
    6         SrcDir     = pwd tmp: false
    7         RemoteRepo = 'git@github.com:cforall/cforall.git'
    8         ArchiveUrl = 'https://cforall.uwaterloo.ca/jenkins/job/Cforall_Distribute_Ref/lastSuccessfulBuild/artifact/*zip*/archive.zip'
    9 
    10         // Local variables
    11         def err = null
    12         def log_needed = false
    13 
    1414        currentBuild.result = "SUCCESS"
    1515
    16         //Wrap build to add timestamp to command line
     16        // Wrap build to add timestamp to command line
    1717        wrap([$class: 'TimestamperBuildWrapper']) {
    18 
    1918                PrepRepo();
    20 
    2119                def name = GetArchive();
    22 
    2320                PushRepo(name);
    2421        }
    25 
    2622}
    2723
     
    5955                }
    6056        }
    61 
    6257        return tarball
    6358}
Note: See TracChangeset for help on using the changeset viewer.