Re: [Kubernetes-Plugin] Declarative pipelines with Pod yaml, jnlp arguments issue

2018-05-01 Thread Hung Do
Sorry, for another post. I don't know how to edit the previous post, I forgot to add this, when I removed the args parameter and saw the created pod with the crashing container, I have looked into the 'created yaml file' in Openshift and saw this :

Re: [Kubernetes-Plugin] Declarative pipelines with Pod yaml, jnlp arguments issue

2018-05-01 Thread Hung Do
I have removed the 'args' parameter from the yaml in the declarative syntax and the container(openshift-slave-maven-centos7) just crashes unfortunately.

Re: [Kubernetes-Plugin] Declarative pipelines with Pod yaml, jnlp arguments issue

2018-05-01 Thread Carlos Sanchez
Just remove the 'args' parameter, it would use environments variables On Tue, May 1, 2018, 20:18 Hung Do wrote: > Ah I thought I could just use the JNLP from the openshift-slave-maven-centos7 > directly. >

Re: [Kubernetes-Plugin] Declarative pipelines with Pod yaml, jnlp arguments issue

2018-05-01 Thread Hung Do
Ah I thought I could just use the JNLP from the openshift-slave-maven-centos7 directly. The end goal is to do the build with the openshift-slave-maven container and do some integration tests with an attached mysql container, while

Re: [Kubernetes-Plugin] Declarative pipelines with Pod yaml, jnlp arguments issue

2018-05-01 Thread Matthew Ceroni
Why even over ride the JNLP container? Just use the default and add another container to the POD with your build tools (then you don't even have to use the YAML format since you won't require any of the extended benefits it provides). Then use the container step to execute in that container.

Re: [Kubernetes-Plugin] Declarative pipelines with Pod yaml, jnlp arguments issue

2018-05-01 Thread Hung Do
I am running on Kubernetes plug 1.6.0 and Jenkins 2.89.4 btw. -- 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

[Kubernetes-Plugin] Declarative pipelines with Pod yaml, jnlp arguments issue

2018-05-01 Thread Hung Do
Hi everyone, I have a problem with this Jenkinsfile, which doesn't wants to build for me #!/usr/bin/env groovy pipeline { agent { kubernetes { label 'maven2' cloud 'openshift' serviceAccount 'jenkins' yaml """ apiVersion: v1 kind: Pod spec: containers: - name: