Changeset 1dec8f3 for Jenkins


Ignore:
Timestamp:
Sep 22, 2025, 2:33:42 PM (9 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master, stuck-waitfor-destruct
Children:
bb5b866
Parents:
7ca6bf1 (diff), 295ed2d1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'refs/remotes/origin/master'

Location:
Jenkins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/Distribute

    r7ca6bf1 r1dec8f3  
    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

    r7ca6bf1 r1dec8f3  
    11#!groovy
    22
     3import groovy.transform.Field
     4
     5// Globals
     6@Field def BuildDir  = null
     7@Field def SrcDir    = null
     8@Field def RemoteRepo = ''
     9@Field def ArchiveUrl = ''
     10
     11// Local variables
     12def err = null
     13def log_needed = false
     14
    315node {
    4         // Globals
    516        BuildDir   = pwd tmp: true
    617        SrcDir     = pwd tmp: false
    718        RemoteRepo = 'git@github.com:cforall/cforall.git'
    819        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 
    1420        currentBuild.result = "SUCCESS"
    1521
    16         //Wrap build to add timestamp to command line
     22        // Wrap build to add timestamp to command line
    1723        wrap([$class: 'TimestamperBuildWrapper']) {
    18 
    1924                PrepRepo();
    20 
    2125                def name = GetArchive();
    22 
    2326                PushRepo(name);
    2427        }
    25 
    2628}
    2729
     
    3638                dir (BuildDir) {
    3739                    sh 'rm -rf *'
    38                         sshagent (credentials: ['git_key_mar27']) {
     40                        sshagent (credentials: ['github_sep2025']) {
    3941                                sh "git clone --bare ${RemoteRepo} repo"
    4042                        }
     
    5961                }
    6062        }
    61 
    6263        return tarball
    6364}
     
    6970                        sh "git status"
    7071                        sh "git diff-index --quiet HEAD || git commit -m 'Push from build machine: ${name}'"
    71                         sshagent (credentials: ['git_key_mar27']) {
     72                        sshagent (credentials: ['github_sep2025']) {
    7273                                sh "git push origin master"
    7374                        }
  • Jenkins/tools.groovy

    r7ca6bf1 r1dec8f3  
    3737                                userRemoteConfigs: [[
    3838                                        url: 'cforall@plg.uwaterloo.ca:software/cfa/cfa-cc',
    39                                         credentialsId: 'git_key_aug20']]
     39                                        credentialsId: 'git_key_aug2025']]
    4040                        ])
    4141                        echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
Note: See TracChangeset for help on using the changeset viewer.