forked from jenkinsci/azure-vm-agents-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuiltInImageFluent.java
More file actions
58 lines (44 loc) · 1.33 KB
/
Copy pathBuiltInImageFluent.java
File metadata and controls
58 lines (44 loc) · 1.33 KB
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
package com.microsoft.azure.vmagent.builders;
import com.microsoft.azure.vmagent.util.Constants;
public class BuiltInImageFluent<T extends BuiltInImageFluent<T>> {
private String builtInImage;
private boolean isInstallGit;
private boolean isInstallMaven;
private boolean isInstallDocker;
public BuiltInImageFluent() {
builtInImage = Constants.WINDOWS_SERVER_2016;
isInstallDocker = false;
isInstallMaven = false;
isInstallGit = false;
}
//CHECKSTYLE:OFF
public T withBuiltInImageName(String builtInImage) {
this.builtInImage = builtInImage;
return (T) this;
}
public T withInstallGit(boolean installGit) {
this.isInstallGit = installGit;
return (T) this;
}
public T withInstallMaven(boolean installMaven) {
this.isInstallMaven = installMaven;
return (T) this;
}
public T withInstallDocker(boolean installDocker) {
this.isInstallDocker = installDocker;
return (T) this;
}
//CHECKSTYLE:ON
public String getBuiltInImage() {
return builtInImage;
}
public boolean isInstallGit() {
return isInstallGit;
}
public boolean isInstallMaven() {
return isInstallMaven;
}
public boolean isInstallDocker() {
return isInstallDocker;
}
}