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

Attachment: signature.asc
Description: Message signed with OpenPGP