Changeset 1dec8f3 for Jenkins/Promote


Ignore:
Timestamp:
Sep 22, 2025, 2:33:42 PM (5 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
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'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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                        }
Note: See TracChangeset for help on using the changeset viewer.