Formal Models pod update (#59)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/59
This commit is contained in:
@@ -337,4 +337,34 @@ class PodTemplates implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public void jsNative(imageVersion='1.2', body) {
|
||||
this.script.podTemplate(
|
||||
cloud: this.cloud,
|
||||
imagePullSecrets: this.dockerCreds,
|
||||
containers: [
|
||||
this.script.containerTemplate(
|
||||
alwaysPullImage: true,
|
||||
name: 'linux',
|
||||
privileged: true,
|
||||
image: "${this.registry}/formal-models/jsn-build-linux:${imageVersion}",
|
||||
ttyEnabled: true,
|
||||
command: "cat",
|
||||
resourceRequestCpu: '30',
|
||||
resourceRequestMemory: '64Gi',
|
||||
resourceLimitCpu: '30',
|
||||
resourceLimitMemory: '128Gi',
|
||||
),
|
||||
],
|
||||
showRawYaml: false,
|
||||
volumes: [
|
||||
this.script.emptyDirVolume(memory: false, mountPath: '/tmp'),
|
||||
],
|
||||
workspaceVolume: this.script.emptyDirWorkspaceVolume(false),
|
||||
)
|
||||
|
||||
{
|
||||
body.call()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user