Using params.item in agent docker section ...

2017-10-05 Thread Eric Tan
Hi Is there a way to use parameters in the agent docker section like: pipeline { parameters { string(name: 'OS_PORT', defaultValue: '') string(name: 'CONTAINER_PORT', defaultValue: '') } agent { docker { image 'someimage'

Re: Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

2017-10-05 Thread Eric Tan
Thanks Daniel and Ishan! -- 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 discussion on the web visit

Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

2017-10-04 Thread Eric Tan
Hi, Is it possible to mix declarative and scripted pipeline syntax in one Jenkinsfile ? For example, there is no withRun() equivalent in the declarative syntax. https://issues.jenkins-ci.org/browse/JENKINS-41581 Thanks, Eric -- You received this message because you are subscribed to the Goog

Re: Jenkins docker container overrides with "--entrypoint cat" ...

2017-09-29 Thread Eric Tan
https://issues.jenkins-ci.org/browse/JENKINS-39748 On Thursday, 28 September 2017 18:49:04 UTC+8, Eric Tan wrote: > > Hi, > > Is there a way to prevent Jenkin from overriding the entrypoint specified > in the container image? > As shown below in the console output, Jenkins a

Re: Using jenkins as a base image for Docker conatainer

2017-09-29 Thread Eric Tan
I think you are missing the volume mapping: -v $HOST_VOLUME:/var/jenkins_home On Friday, 29 September 2017 11:06:47 UTC+8, jorge alarcon wrote: > > Hello everyone, > I am porting some old code I had for jenkins, version 1.X.X. For this I > had a Dockerfile that looked like this: > > FROM jenki

Jenkins docker container overrides with "--entrypoint cat" ...

2017-09-28 Thread Eric Tan
Hi, Is there a way to prevent Jenkin from overriding the entrypoint specified in the container image? As shown below in the console output, Jenkins adds "*--entrypoint cat*" which overrides my own entrypoint. $ docker run -t -d -u 1000:1000 -w /var/jenkins_home/workspace/Test_Pipeline_master-

Re: Unable to select Poll SCM checkbox ...

2017-09-28 Thread Eric Tan
*while* simultaneously reducing the load on > the SCM Server (one scan vs N polling) > > On Thu 28 Sep 2017 at 06:31, Eric Tan > > wrote: > >> >> Hi, >> >> Using Jenkins 2.79. >> >> Logged in as admin and navigate to Jenkins > MyJob > mast

Re: Unable to select Poll SCM checkbox ...

2017-09-27 Thread Eric Tan
Hi, Using Jenkins 2.79. Logged in as admin and navigate to Jenkins > MyJob > master (branch). Trying to enable the "Poll SCM" checkbox but there is only view only mode under View Configuration. How do I go about to enable edit mode to select "Poll SCM" checkbox? I understand that the older

Unable to select Poll SCM checkbox ...

2017-09-27 Thread Eric Tan
Hi, Logged in as admin and navigate to Jenkins > MyJob > master (branch). Trying to enable the "Poll SCM" checkbox but there is only view only mode under View Configuration. How do I go about to enable edit mode to select "Poll SCM" checkbox? Thanks, Eric -- You received this message