~sil2100/cupstream2distro/dont_multi_merge

« back to all changes in this revision

Viewing changes to citrain/setup_citrain.py

Rip out preprod and self-updating code as per ev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
OTHER_JOBS
34
34
    Configure non-silo jobs as well
35
35
 
36
 
DEPLOY_PREPROD_CITRAIN
37
 
    Deploy custom branch for preproduction code of CI Train
38
 
 
39
36
DEPLOY_PROD_CITRAIN
40
37
    Deploy latest trunk code as production CI Train system
41
38
 
62
59
from cupstream2distro.settings import (
63
60
    ALL_SILO_NAMES,
64
61
    CITRAIN_BINDIR,
65
 
    CITRAIN_PREPROD_BINDIR,
66
 
    SILO_PREPROD_NAME_LIST,
67
62
    SILOS_DIR,
68
63
    SILO_RSYNCDIR,
69
64
)
70
65
 
71
66
 
72
 
ALL_PREPROD_SILOS = (SILO_PREPROD_NAME_LIST['ubuntu'] +
73
 
                     SILO_PREPROD_NAME_LIST['ubuntu-rtm'])
74
67
DEFAULT_CREDENTIALS = os.path.expanduser('~/.cu2d.cred')
75
68
JENKINS_DAILY_CONFIG_NAME = 'citrain'
76
69
TEMPLATE_DIR = os_path_join_safe(
138
131
        log_value_of.jobname()
139
132
        log_value_of.template_name()
140
133
        context['BINDIR'] = CITRAIN_BINDIR
141
 
        for preprod_silo in ALL_PREPROD_SILOS:
142
 
            if preprod_silo.split('/')[-1] in jobname:
143
 
                context['BINDIR'] = CITRAIN_PREPROD_BINDIR
144
 
                break
145
134
        context['RSYNC_OUTDIR'] = SILO_RSYNCDIR
146
135
        jkcfg = load_template(template_name, context)
147
136
        jobname = quote(jobname)