Changeset ab60d6d


Ignore:
Timestamp:
Jun 6, 2016, 12:37:44 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
d5f1cfc, efbca69
Parents:
7b1a604
Message:

Clean-up Jenkinsfile, should correct erronous build status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r7b1a604 rab60d6d  
    6464}
    6565
     66//Helper routine to collect information about the git history
     67def collect_git_info() {
     68
     69        def out_dir = pwd tmp: true
     70        gitRefName = env.BRANCH_NAME
     71        dir("../${gitRefName}@script") {
     72                sh "git reflog > ${out_dir}/GIT_COMMIT"
     73        }
     74        git_reflog = readFile("${out_dir}/GIT_COMMIT")
     75        gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]
     76        gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]
     77}
     78
    6679//===========================================================================================================
    6780// Main loop of the compilation
     
    7184        def err = null
    7285        def log_needed = false
    73         currentBuild.result = "FAILURE"
     86        currentBuild.result = "SUCCESS"
    7487        status_prefix = ''
    7588
    7689        try {
    77 
    78 
    7990                //Prevent the build from exceeding 30 minutes
    8091                timeout(30) {
     
    99110                        }
    100111                }
    101 
    102                 currentBuild.result = "SUCCESS"
    103112        }
    104113
     
    125134                }
    126135        }
    127 }
    128 
    129 def collect_git_info() {
    130 
    131         def out_dir = pwd tmp: true
    132         gitRefName = env.BRANCH_NAME
    133         dir("../${gitRefName}@script") {
    134                 sh "git reflog > ${out_dir}/GIT_COMMIT"
    135         }
    136         git_reflog = readFile("${out_dir}/GIT_COMMIT")
    137         gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]
    138         gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]
    139136}
    140137
Note: See TracChangeset for help on using the changeset viewer.