Skip to main content

[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.

I just added a very simple example that should work for you on the wiki



Mikaël Barbero 
Team Lead - Release Engineering | Eclipse Foundation
📱 (+33) 642 028 039 | 🐦 @mikbarbero
Eclipse Foundation: The Platform for Open Innovation and Collaboration

Le 28 mai 2019 à 10:03, Mickael Istria <mistria@xxxxxxxxxx> a écrit :

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
  - name: maven
    image: maven:3.6.2-jdk11
    tty: true
    command: [ "uid_entrypoint", "cat" ]
  - name: jnlp
    image: 'eclipsecbi/jenkins-jnlp-agent'
    - mountPath: /home/jenkins/.ssh
      name: volume-known-hosts
  - 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
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Attachment: signature.asc
Description: Message signed with OpenPGP

Back to the top