-
Notifications
You must be signed in to change notification settings - Fork 120
/
Variables.java
95 lines (61 loc) · 3.05 KB
/
Variables.java
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* Copyright 2018 flow.ci
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.flowci.core.common.domain;
/**
* @author yang
*/
public abstract class Variables {
public abstract static class App {
public static final String LogLevel = "FLOWCI_LOG_LEVEL";
public static final String ServerUrl = "FLOWCI_SERVER_URL";
public static final String Host = "FLOWCI_SERVER_HOST";
public static final String ResourceDomain = "FLOWCI_RESOURCE_DOMAIN";
}
public abstract static class Flow {
public static final String Name = "FLOWCI_FLOW_NAME";
public static final String GitUrl = "FLOWCI_GIT_URL"; // set
public static final String GitBranch = "FLOWCI_GIT_BRANCH"; // set
public static final String GitRepo = "FLOWCI_GIT_REPO"; // set
public static final String GitCredential = "FLOWCI_GIT_CREDENTIAL"; // set
}
public abstract static class Job {
public static final String BuildNumber = "FLOWCI_JOB_BUILD_NUM";
public static final String Trigger = "FLOWCI_JOB_TRIGGER";
public static final String TriggerBy = "FLOWCI_JOB_TRIGGER_BY"; // == user email of job.createdBy
public static final String StartAt = "FLOWCI_JOB_START_AT";
public static final String FinishAt = "FLOWCI_JOB_FINISH_AT";
// {step name}={status};{step name}={status}
public static final String Steps = "FLOWCI_JOB_STEPS";
// both status and error will carry out latest job status and error message from step
public static final String Status = "FLOWCI_JOB_STATUS";
public static final String Error = "FLOWCI_JOB_ERROR";
}
public abstract static class Step {
// to control run step from docker defined in step or plugin, default is true
public static final String DockerEnabled = "FLOWCI_STEP_DOCKER_ENABLED";
}
public abstract static class Agent {
public static final String DockerImage = "FLOWCI_AGENT_IMAGE";
public static final String ServerUrl = "FLOWCI_SERVER_URL";
public static final String Token = "FLOWCI_AGENT_TOKEN";
public static final String Workspace = "FLOWCI_AGENT_WORKSPACE";
public static final String PluginDir = "FLOWCI_AGENT_PLUGIN_DIR";
public static final String K8sEnabled = "FLOWCI_AGENT_K8S_ENABLED";
public static final String K8sInCluster = "FLOWCI_AGENT_K8S_IN_CLUSTER";
public static final String LogLevel = "FLOWCI_AGENT_LOG_LEVEL";
public static final String Volumes = "FLOWCI_AGENT_VOLUMES";
}
}