Handling version of own dependencies in multi-project codebase in Jenkins

2018-01-22 Thread AndreasR
Hello! I'm using Jenkins to build and deploy a Java application which consists of multiple Maven projects. One of the projects is a front-end Java Maven project, and it has the other Maven projects (Java lower-level code I also develop) specifed as dependencies in it's pom.xml file. When I mak

Re: Tool URLs on master vs agent for pipeline jobs

2018-01-22 Thread Stephen Connolly
On Tue 23 Jan 2018 at 01:32, Guy Knights wrote: > I have a bit of an issue I've run into. I've set up git mirrors in > separate subnets and would like my pipeline jobs to use these mirrors as > the pipeline job source. Until now, we've had a central gitlab repo which > we allowed access to throug

Re: How to change default permissions of created jobs in Jenkins file system

2018-01-22 Thread Mark Waite
The umask setting for the Jenkins user is probably what controls the permissions on those files. Refer to the "umask" man page on your system to see if you can find a way to set the umask on the account running the Jenkins process. Job definitions can be downloaded with http (or https) from the J

How to change default permissions of created jobs in Jenkins file system

2018-01-22 Thread 黄涛
Hi all, When I create a job(say *foo*), if I check the /jobs/ directory all the jobs are created with the permission 750. drwxr-x--- 3 android android 4096 1月 23 09:17 foo/ I want to share jobs in samba,i want it to created with the 775.How can I achieve that?. Appreciate your help.. My je

Tool URLs on master vs agent for pipeline jobs

2018-01-22 Thread Guy Knights
I have a bit of an issue I've run into. I've set up git mirrors in separate subnets and would like my pipeline jobs to use these mirrors as the pipeline job source. Until now, we've had a central gitlab repo which we allowed access to through our firewall for each remote subnet. I changed the url

Re: Kubernetes-Plugin BadRequest container name must be specified

2018-01-22 Thread Chris Denneen
1. I was using the external name rather than the internal (cluster.local) DNS name in the Kubernetes Cloud Configuration in Jenkins 2. Even when I switched it appears it's because the port is necessary (http://jenkins.jenkins.svc.cluster.local:443) which I found in open issue (https://issues.jen

Re: Fail 1 stage in jenkinsscript

2018-01-22 Thread ST
Regarding 1 and 2: I think you should model them based on whether they are dependent on each other: * Either the two test sets are independently of each other, meaning that even if "Test Set 1" fails then that does not affect in any way the stability/outcome of the "Test Set 2" -> If so, run them

Re: Webhooks in hosted gitlab + local jenkins setup

2018-01-22 Thread Lorem Ipsum
Thank you, this is perfect!. Totally forgot about ngrok -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view t

Re: StackOverflowException in Declarative with when { expression {} }

2018-01-22 Thread ST
Ah, could be - anyone else can shed some light on whether using 'sh' in expression {} in declarative pipeline is fully supported or just happens to work sometimes? pipeline { [...] stages { stage('Maven build') { when { expression {

Re: Kubernetes-Plugin BadRequest container name must be specified

2018-01-22 Thread Chris Denneen
jnlp: Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS to alter the behavior Warning: SECRET is defined twice in command-line arguments and the environment variable Warning: AGENT_NAME is defined twice in command-line arguments and the environment variable Jan 22, 2018 9:27:

Re: Kubernetes-Plugin BadRequest container name must be specified

2018-01-22 Thread Carlos Sanchez
Yes you are missing the container name at the end kubectl logs jenkins-slave-1kl4v-flv53 golang On Mon, Jan 22, 2018, 21:01 Chris Denneen wrote: > I've installed latest LTS of jenkins and installed latest > kubernetes-plugin. > > I've created 2 pipeline jobs to test: > > pod-golang from here (

Re: Webhooks in hosted gitlab + local jenkins setup

2018-01-22 Thread Stephen Connolly
Try ngrok. Run it on the Jenkins Server and it will give you a public url for the webhook On Mon 22 Jan 2018 at 20:29, Lorem Ipsum wrote: > Couldn't forward the ports for inbound traffic > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. >

Re: Webhooks in hosted gitlab + local jenkins setup

2018-01-22 Thread Lorem Ipsum
Couldn't forward the ports for inbound traffic -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discus

Re: Webhooks in hosted gitlab + local jenkins setup

2018-01-22 Thread Chris Denneen
Why didn't DDNS work? On Monday, January 22, 2018 at 1:42:45 PM UTC-5, Lorem Ipsum wrote: > > Hello, > > I've got a question and a possible answer but since I'm new to Jenkins and > it's plugins maybe there is an easier way to do the thing I'm trying to > accomplish. > > First of my current setu

Kubernetes-Plugin BadRequest container name must be specified

2018-01-22 Thread Chris Denneen
I've installed latest LTS of jenkins and installed latest kubernetes-plugin. I've created 2 pipeline jobs to test: pod-golang from here ( https://kumorilabs.com/blog/k8s-6-integrating-jenkins-kubernetes/) and one from Carlos Sanchez blog here ( https://blog.csanchez.org/2016/10/25/jenkins-kuberne

Webhooks in hosted gitlab + local jenkins setup

2018-01-22 Thread Lorem Ipsum
Hello, I've got a question and a possible answer but since I'm new to Jenkins and it's plugins maybe there is an easier way to do the thing I'm trying to accomplish. First of my current setup is the following: - Gitlab hosted on a server - Jenkins on premise with dynamic IP and hard to open up

SV: Fail 1 stage in jenkinsscript

2018-01-22 Thread Joachim Nilsson
Regarding 3: The script language is Groovy so the expansion of ${variablename} is only done when using a Groovy-String, which is defined by double quotation marks ”, not single ’. So: change it to echo ”Caught-1 : ${exc}” /Joachim Från: jenkinsci-users@googlegroups.com [mailto:jenkinsci-use

Re: Fail 1 stage in jenkinsscript

2018-01-22 Thread NickA
Nobody? :-( I thought this wouldn't be too hard but apparently it is. That's one of the downsides of Jenkins: support en finding good/detailed information. I already found answers to other issues on here; but the official help file sucks and isn't always detailed enough or without samples. --