Hi,

Is there a way to pass parameters to the docker run entrypoint comand?
what i mean is, for the run command I need to have something like this:
docker run myImage -Dhost.url.expected=http://url 
-Dhost.url.actual=http://url

Currently the pipeline that I've build would look like:

agent {
 dockerfile {
 args '-Dhost.url.expected=${params.EXPECTED} 
-Dhost.url.actual=${params.ACTUAL}'
 }
}


but like this, will actually do something like:
docker run -Dhost.url.expected=http://url -Dhost.url.actual=http://url 
myImage 
causing the script to fail of course

is there a way to achieve what I need?
Ideally still using a declarative pipeline... with as less boilerplate as 
possible

Let me know if you need more details, I can add the whole jenkinsfile / 
dockerfile if needed

Thanks!



-- 
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 
https://groups.google.com/d/msgid/jenkinsci-users/726a264e-acf6-465d-b0c3-855d66da56f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to