[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] emptyDir volume 'm2-repo'

It's only needed to trick Kubernetes. Without the empty dir, ~/.m2 is created because of 

      name: settings-xml
      mountPath: /home/jenkins/.m2/settings.xml

which makes it read-only. The trick to create an emptyDir is to make the ~/.m2/repository writable


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

Le 8 juil. 2019 Ã 10:38, Karsten Thoms <karsten.thoms@xxxxxxxxx> a Ãcrit :

In the wiki [1] it is recommended to declare a volume âm2-repoâ and mounted to path '/home/jenkins/.m2/repository':
 - name: m2-repo
   emptyDir: {}
Could you explain please what is the sense behind using emptyDir here? Isnât the agent starting always with an empty workspace?
Has this to do with volume space or performance?


[1] https://wiki.eclipse.org/Jenkins#Custom_container_on_Jiro
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