Re: Jenkins + Kubernetes - Cache .m2 for jobs

2020-03-25 Thread Liejun Tao
This is my solution for a little different purpose: use a .m2 cache for common libs. https://github.com/liejuntao001/jenkins-k8sagent-lib/blob/a6ced3975e37fe559c0ae8a918ed01b6920f1efa/resources/podtemplates/base.yaml#L24 The idea is to make a docker image with the most used artifacts(external

Re: Security for team-specific nodes

2020-03-25 Thread Jason Swager
If you use CloudBees Jenkins and their Folder Plus plugin, there is a feature on Folders that allows exactly this. There is a Controlled Slave/Folder feature where you can set a mapping between one or more folders to a slave. Such that only jobs in the mapped folder can execute on the mapped

Re: Jenkins + Kubernetes - Cache .m2 for jobs

2020-03-25 Thread Tristan FAURE
Hello ! we have the same issue what we would like is the same behavior as : https://docs.gitlab.com/ee/ci/caching/ I have seen this example : https://github.com/jenkinsci/kubernetes-plugin/blob/master/examples/maven-with-cache.groovy but if several jobs run in parallel I don't want them to

Re: Your profile name includes a 'profile ' prefix

2020-03-25 Thread Alan Sparks
I apologize for the spam, I was able to determine the cause... found a message in logs that suggested it was an AWS credential issue. Log messages stopped after fixing this. 2020-03-25 15:52:12.362+ [id=35]WARNING c.a.p.p.c.CredentialsLegacyConfigLocationProvider#getLocation: Found

Your profile name includes a 'profile ' prefix

2020-03-25 Thread Alan Sparks
I've suddenly started getting a lot of the following message in my Jenkins logs. I'm figuring it happened coincident with one of my team members copying a jobs folder from our previous Jenkins install to my newer one (running LTS 2.204.5). Can anyone tell me what the log messages are

Re: CI with Git in Jenkins

2020-03-25 Thread Mark Waite
Multibranch pipelines assume that you want to build all branches that include a Jenkinsfile any time the notification is received through notifyCommit or through a Web Hook. If you do not want one or more branches built on multibranch pipelines, you'll need to exclude them. The Basic Branch

CI with Git in Jenkins

2020-03-25 Thread Roland Asmann
Hi everybody, Way-back-when, Kohsuke wrote this post about how to setup CI with Git in Jenkins: https://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/ I have been using this in most my builds since and am still trying to get all colleagues to do the same

Security for team-specific nodes

2020-03-25 Thread Roland Asmann
Hey everybody, I am a Jenkins admin in my company, but since the introduction of pipelines, I feel like I have lost a lot of control over Jenkins. There are a couple of things in my company that are really important for me to remain in control of, so I was hoping to get some pointers from