Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/FullBuild

    r4af1021 r8089fde  
    88        def err = null
    99
    10         final scmVars = checkout scm
    11         final commitId = scmVars.GIT_COMMIT
    12 
    1310        try {
    1411                //Wrap build to add timestamp to command line
     
    1613
    1714                        stage('Build') {
     15
     16                                results = [null, null]
    1817
    1918                                parallel (
     
    3231
    3332                        stage('Package') {
    34                                 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number)]
     33                                build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: gitRefNewValue), string(name: 'Build', value: currentBuild.number)]
    3534                        }
    3635                }
     
    103102}
    104103
     104//Helper routine to collect information about the git history
     105def collect_git_info() {
     106
     107        //create the temporary output directory in case it doesn't already exist
     108        def out_dir = pwd tmp: true
     109        sh "mkdir -p ${out_dir}"
     110
     111        //parse git logs to find what changed
     112        dir("../Cforall_Full_Build@script") {
     113                sh "git reflog > ${out_dir}/GIT_COMMIT"
     114        }
     115        git_reflog = readFile("${out_dir}/GIT_COMMIT")
     116        gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]
     117        gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]
     118}
     119
    105120//===========================================================================================================
    106121//Routine responsible of sending the email notification once the build is completed
Note: See TracChangeset for help on using the changeset viewer.