[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cbi-dev] Newbie question about new Jenkins – Jenkinsfile and Tools
|
You can use the excerpt Mickael pasted, but it's not the "migration" agent as we call it. I don't think you need it anyway.
HTH,
Cheers,
Mikaël Barbero
Team Lead - Release Engineering | Eclipse Foundation 📱 (+33) 642 028 039 | 🐦 @mikbarbero
Hi Jens,
You may be able to use the "migration" agent in your Jenkinsfile with something like
agent {
kubernetes {
label 'wildwebdeveloper-buildtest-pod'
defaultContainer 'jnlp'
yaml """
apiVersion: v1
kind: Pod
spec:
containers:
- name: maven
image: maven:3.6.2-jdk11
tty: true
command: [ "uid_entrypoint", "cat" ]
- name: jnlp
image: 'eclipsecbi/jenkins-jnlp-agent'
volumeMounts:
- mountPath: /home/jenkins/.ssh
name: volume-known-hosts
volumes:
- configMap:
name: known-hosts
name: volume-known-hosts
"""
}
}
And thenm you can switch between the maven and the jnlp containers in your build steps.
_______________________________________________ cbi-dev mailing list cbi-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cbi-dev
|
Attachment:
signature.asc
Description: Message signed with OpenPGP