blob: 286bef5b04e98f4e7a3ae42210d050e54e7fa40f [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This module contains constants for Chrome OS bots."""
from __future__ import print_function
import os
BUILDBOT_DIR = '/b'
BUILDBOT_USER = 'chrome-bot'
CHROMITE_URL = 'https://chromium.googlesource.com/chromiumos/chromite'
DEPOT_TOOLS_URL = ('https://chromium.googlesource.com/chromium/tools/'
'depot_tools.git')
CHROME_INFRA_SLAVE_REPO = ('https://chrome-internal.googlesource.com/chrome/'
'tools/build/internal.DEPS.git')
CHROME_INFRA_SLAVE_DEPS_FILE = '.DEPS.git'
CHROMIUM_BUILD_URL = 'https://chromium.googlesource.com/chromium/src/build'
GCOMPUTE_TOOLS_URL = 'https://gerrit.googlesource.com/gcompute-tools'
# The BOT_CREDS_DIR is required to set up a GCE bot. The directory
# should contain:
# - SVN_PASSWORD_FILE_: password for svn.
# - TREE_STATUS_PASSWORD_FILE: password for updating tree status.
# - CIDB_CREDS_DIR: A directory containing cidb credentials.
# - BUILDBOT_PASSWORD_FILE: password for buildbot.
# - HOST_ENTRIES: entries to append to /etc/hosts
# - GMAIL_CREDENTIALS_FILE: credentials to access Gmail API.
BOT_CREDS_DIR_ENV_VAR = 'BOT_CREDENTIALS_DIR'
SVN_PASSWORD_FILE = 'svn_password'
TREE_STATUS_PASSWORD_FILE = '.status_password_chromiumos'
CIDB_CREDS_DIR = '.cidb_creds'
BUILDBOT_PASSWORD_FILE = '.bot_password'
HOST_ENTRIES = 'host_entries'
GMAIL_CREDENTIALS_FILE = '.gmail_credentials'
# This path is used to store credentials on the GCE machine during botifying.
BOT_CREDS_TMP_PATH = os.path.join(os.path.sep, 'tmp', 'bot-credentials')
BUILDBOT_SVN_USER = '%s@google.com' % BUILDBOT_USER
CHROMIUM_SVN_HOSTS = ('svn.chromium.org',)
CHROMIUM_SVN_REPOS = ('chrome', 'chrome-internal', 'leapfrog-internal')
GIT_USER_NAME = 'chrome-bot'
GIT_USER_EMAIL = '%s@chromium.org' % GIT_USER_NAME