This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathglobal-variables.ps1
48 lines (42 loc) · 2.26 KB
/
global-variables.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# DCOS common configurations
$STORAGE_SERVER_ADDRESS = "192.10.1.12"
$STORAGE_SERVER_USER = "jenkins"
$STORAGE_SERVER_BASE_URL = "http://dcos-win.westus2.cloudapp.azure.com"
$ARTIFACTS_DIRECTORY = "/storage/data/artifacts"
$ARTIFACTS_BASE_URL = "${STORAGE_SERVER_BASE_URL}/artifacts"
$DCOS_DIR = Join-Path "D:" "DCOS"
# Mesos configurations
$MESOS_DIR = Join-Path $DCOS_DIR "mesos"
$MESOS_GIT_REPO_DIR = Join-Path $MESOS_DIR "mesos"
$MESOS_BUILD_OUT_DIR = Join-Path $MESOS_DIR "build-output"
$MESOS_BUILD_LOGS_DIR = Join-Path $MESOS_BUILD_OUT_DIR "logs"
$MESOS_BUILD_BINARIES_DIR = Join-Path $MESOS_BUILD_OUT_DIR "binaries"
# dcos-net configurations
$DCOS_NET_DIR = Join-Path $DCOS_DIR "dcos-net"
$DCOS_NET_GIT_REPO_DIR = Join-Path $DCOS_NET_DIR "dcos-net"
$DCOS_NET_LIBSODIUM_GIT_DIR = Join-Path $DCOS_NET_DIR "libsodium"
$DCOS_NET_BUILD_OUT_DIR = Join-Path $DCOS_NET_DIR "build-output"
$DCOS_NET_BUILD_RELEASE_DIR = Join-Path $DCOS_NET_BUILD_OUT_DIR "release"
$DCOS_NET_BUILD_LOGS_DIR = Join-Path $DCOS_NET_BUILD_OUT_DIR "logs"
# Diagnostics configurations
$DIAGNOSTICS_DIR = Join-Path $DCOS_DIR "diagnostics"
$DIAGNOSTICS_GIT_REPO_DIR = Join-Path $DIAGNOSTICS_DIR "src\github.com\dcos\dcos-diagnostics"
$DIAGNOSTICS_BUILD_OUT_DIR = Join-Path $DIAGNOSTICS_DIR "build-output"
$DIAGNOSTICS_BUILD_LOGS_DIR = Join-Path $DIAGNOSTICS_BUILD_OUT_DIR "logs"
$DIAGNOSTICS_BUILD_BINARIES_DIR = Join-Path $DIAGNOSTICS_BUILD_OUT_DIR "binaries"
# Metrics configurations
$METRICS_DIR = Join-Path $DCOS_DIR "metrics"
$METRICS_GIT_REPO_DIR = Join-Path $METRICS_DIR "src\github.com\dcos\dcos-metrics"
$METRICS_BUILD_OUT_DIR = Join-Path $METRICS_DIR "build-output"
$METRICS_BUILD_LOGS_DIR = Join-Path $METRICS_BUILD_OUT_DIR "logs"
$METRICS_BUILD_BINARIES_DIR = Join-Path $METRICS_BUILD_OUT_DIR "binaries"
# Installers & git repositories URLs
$GIT_URL = "$STORAGE_SERVER_BASE_URL/downloads/git-64-bit.exe"
$7ZIP_URL = "https://www.7-zip.org/a/7z1805-x64.msi"
$GOLANG_URL = "https://dl.google.com/go/go1.9.4.windows-amd64.msi"
$DCOS_WINDOWS_GIT_URL = "https://github.com/dcos/dcos-windows"
$LIBSODIUM_GIT_URL = "https://github.com/jedisct1/libsodium"
# Tools installation directories
$GIT_DIR = Join-Path $env:ProgramFiles "Git"
$7ZIP_DIR = Join-Path $env:ProgramFiles "7-Zip"
$GOLANG_DIR = Join-Path $env:SystemDrive "Go"