Skip to content
Snippets Groups Projects
Unverified Commit ee681e3f authored by Mikaël Barbero's avatar Mikaël Barbero :dagger: Committed by GitHub
Browse files

Removed useless top level agent

parent d90f5419
No related branches found
No related tags found
No related merge requests found
@Library('common-shared') _ @Library('common-shared') _
pipeline { pipeline {
agent { agent any
kubernetes {
label 'buildpack-agent'
yaml '''
apiVersion: v1
kind: Pod
spec:
containers:
- name: buildpack
image: buildpack-deps:stable
command:
- cat
tty: true
resources:
limits:
memory: "2Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "1"
volumeMounts:
- name: tmp
mountPath: /tmp
- name: jnlp
resources:
limits:
memory: "2Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "1"
volumeMounts:
- name: mvnw
mountPath: /home/jenkins/.m2/wrapper
readOnly: false
- name: m2-repo
mountPath: /home/jenkins/.m2/repository
- name: settings-xml
mountPath: /home/jenkins/.m2/settings.xml
subPath: settings.xml
readOnly: true
- name: tmp
mountPath: /tmp
volumes:
- name: mvnw
emptyDir: {}
- name: m2-repo
emptyDir: {}
- name: tmp
emptyDir: {}
- name: settings-xml
secret:
secretName: m2-secret-dir
items:
- key: settings.xml
path: settings.xml
'''
}
}
environment { environment {
APP_NAME = 'git-eca-rest-api' APP_NAME = 'git-eca-rest-api'
...@@ -186,4 +128,4 @@ ...@@ -186,4 +128,4 @@
sendNotifications currentBuild sendNotifications currentBuild
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment