Skip to content

Commit

Permalink
[Build] Simplify definition of native build agent for gtk.linux.x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell authored and akurtakov committed Jul 12, 2024
1 parent 4194529 commit 7e96bdd
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,13 @@
def runOnNativeBuildAgent(String platform, Closure body) {
def final nativeBuildStageName = 'Build SWT-native binaries'
if (platform == 'gtk.linux.x86_64') {
return podTemplate(yaml: '''
apiVersion: v1
kind: Pod
spec:
containers:
- name: "swtbuild"
image: "eclipse/platformreleng-centos-swt-build:8"
imagePullPolicy: "Always"
resources:
limits:
memory: "4096Mi"
cpu: "2000m"
requests:
memory: "512Mi"
cpu: "1000m"
command:
- cat
tty: true
volumeMounts:
- name: tools
mountPath: /opt/tools
volumes:
- name: tools
persistentVolumeClaim:
claimName: tools-claim-jiro-releng
''') { node(POD_LABEL) { stage(nativeBuildStageName) { container('swtbuild') { body() } } } }
return podTemplate(containers: [name: 'swtbuild', image: 'eclipse/platformreleng-centos-swt-build:8',
resourceRequestCpu:'1000m', resourceRequestMemory:'512Mi',
resourceLimitCpu:'2000m', resourceLimitMemory:'4096Mi'
]) { node(POD_LABEL) { stage(nativeBuildStageName) { container('swtbuild') {
//TODO: install requirements?
body()
} } } }
} else {
return node('native.builder-' + platform) { stage(nativeBuildStageName) { body() } }
}
Expand Down

0 comments on commit 7e96bdd

Please sign in to comment.