Changeset e034675 for Jenkinsfile


Ignore:
Timestamp:
Jun 8, 2016, 2:59:23 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
ddf377e
Parents:
2aaabbd
Message:

Jenkins - build now only adds remote origin if necessary

  • testing if groovy booleans are boxed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r2aaabbd re034675  
    3838        build_stage 'Push'
    3939
    40                 sh 'git remote add DoLang git@gitlab.do-lang.org:internal/cfa-cc.git'
     40                def out_dir = pwd tmp: true
     41                sh "mkdir -p ${out_dir}"
     42
     43                //parse git logs to find what changed
     44                sh "git remote > ${out_dir}/GIT_REMOTE"
     45                git_remote = readFile("${out_dir}/GIT_REMOTE")
     46                remoteDoLangExists = git_remote.contains("DoLang")
     47
     48                if( !remoteDoLangExists ) {
     49                        sh 'git remote add DoLang git@gitlab.do-lang.org:internal/cfa-cc.git'
     50                }
     51
    4152                sh 'git push DoLang master'
    4253}
     
    131142                                cfa_build()
    132143
    133                                 if(promoteBuild2DoLang) {
     144                                if( promoteBuild2DoLang == true ) {
    134145                                        push_build()
    135146                                }
Note: See TracChangeset for help on using the changeset viewer.