forked from jenkinsci/google-compute-engine-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration-as-code.yml
55 lines (55 loc) · 2.63 KB
/
configuration-as-code.yml
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
jenkins:
clouds:
- computeEngine:
cloudName: jenkins-build
projectId: gce-jenkins
instanceCapStr: 53
credentialsId: gce-jenkins
noDelayProvisioning: false
configurations:
- namePrefix: jenkins-agent-image
description: Jenkins agent
launchTimeoutSecondsStr: 6
retentionTimeMinutesStr: 300
mode: EXCLUSIVE
labelString: jenkins-agent
numExecutorsStr: 1
runAsUser: jenkins
remoteFs: agent
javaExecPath: "java"
oneShot: true
createSnapshot: false
region: "https://www.googleapis.com/compute/v1/projects/gce-jenkins/regions/europe-west1"
zone: "https://www.googleapis.com/compute/v1/projects/gce-jenkins/zones/europe-west1-a"
template: '' # tried not setting, added when 'saved' in UI
machineType: "https://www.googleapis.com/compute/v1/projects/gce-jenkins/zones/europe-west1-a/machineTypes/n1-standard-2"
preemptible: false
minCpuPlatform: '' # tried not setting, added when 'saved' in UI
startupScript: '' # tried not setting, added when 'saved' in UI
networkConfiguration:
sharedVpc:
projectId: gce-jenkins-cloud-123456
region: europe-west1
subnetworkShortName: gce-jenkins-cloud
networkTags: jenkins-agent
networkInterfaceIpStackMode:
singleStack:
externalIPV4Address: true
useInternalAddress: false
bootDiskSourceImageProject: gce-jenkins
bootDiskSourceImageName: "https://www.googleapis.com/compute/v1/projects/gce-jenkins/global/images/gce-jenkins-build-image"
bootDiskType: "https://www.googleapis.com/compute/v1/projects/gce-jenkins/zones/europe-west1-a/diskTypes/pd-standard"
bootDiskSizeGbStr: 50
bootDiskAutoDelete: true
serviceAccountEmail: '[email protected]'
credentials:
system:
domainCredentials:
- credentials:
- googleRobotPrivateKeyCredentials:
id: gce-jenkins
projectId: gce-jenkins
serviceAccountConfig:
jsonServiceAccountConfig:
# The encoded version of {"client_email": "[email protected]"}
secretJsonKey: 'eyJjbGllbnRfZW1haWwiOiAiZXhhbXBsZUBleGFtcGxlLmNvbSJ9'