[DO-316] Add doxygne pod template (!61)

Co-authored-by: Denis Patrakeev <denis.patrakeev@avroid.team>
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/61
Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.team>
Reviewed-by: Rustam Tagaev <rustam.tagaev@avroid.team>
This commit is contained in:
Dmitrij Prokov
2025-02-18 18:31:10 +03:00
parent 022dd7ae30
commit eb70330b11

View File

@@ -367,4 +367,32 @@ class PodTemplates implements Serializable {
} }
} }
public void doxygen(imageVersion='1.9.8-1', body) {
this.script.podTemplate(
cloud: this.cloud,
imagePullSecrets: this.dockerCreds,
containers: [
this.script.containerTemplate(
alwaysPullImage: true,
name: 'doxygen',
image: "${this.registry}/devops/doxygen:${imageVersion}",
ttyEnabled: true,
command: "cat",
resourceRequestCpu: '300m',
resourceRequestMemory: '256Mi',
resourceLimitCpu: '300m',
resourceLimitMemory: '256Mi',
),
],
showRawYaml: false,
volumes: [
this.script.emptyDirVolume(memory: false, mountPath: '/tmp'),
],
workspaceVolume: this.script.emptyDirWorkspaceVolume(false),
)
{
body.call()
}
}
} }