[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

Thank you both for your help on this.

I think it would be good to consolidate the "CBI" page and the "Jenkins" page and the Wiki. That is was confused me.

On Tue, May 28, 2019 at 11:12 AM MikaÃl Barbero <mikael.barbero@xxxxxxxxxxxxxxxxxxxxxx> wrote:
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Âhttps://wiki.eclipse.org/Jenkins#How_do_I_run_a_Java_build_on_the_new_infra.3F

HTH,

Cheers,

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
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@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cbi-dev

_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cbi-dev


--
Jens Reimann
Principal Software Engineer / EMEA ENG Middleware
Werner-von-Siemens-Ring 14
85630 Grasbrunn
Germany
phone: +49 89 2050 71286
_____________________________________________________________________________

Red Hat GmbH, www.de.redhat.com,
Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Tom Savage, Michael O'Neill