Re: Building docker images with declarative pipeline

2019-06-04 Thread 'Toby Hersey' via Jenkins Users
Thanks very much for this :) On Tuesday, September 12, 2017 at 5:42:03 PM UTC+1, Joshua Noble wrote: > > With declarative pipelines this is pretty straight forward, just build the > Docker image like you would on your local machine using `sh` commands. > > For example, in our cluster all build ag

Re: Building docker images with declarative pipeline

2018-01-11 Thread Mayur Nagekar
Hello all, Do we have any update here ? i have been trying to use dockerfile as the agent to build a docker image from the Dockerfile in my source repo and then be able to run some unit tests within the container. I browsed all possible sources of documentation(see below) but still no luck. H

Re: Building docker images with declarative pipeline

2017-09-12 Thread Ari Pringle
Hi Alex, I had some trouble figuring out how to do this as well. The docs here show what is possible for docker.image using scripted pipeline (and thus inside of a script{} block): https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#docker-workflow I ended up with s

Re: Building docker images with declarative pipeline

2017-09-12 Thread Joshua Noble
With declarative pipelines this is pretty straight forward, just build the Docker image like you would on your local machine using `sh` commands. For example, in our cluster all build agents are actually the same, but most builds run inside of a container on one of these nodes, which you've not

Re: Building docker images with declarative pipeline

2017-09-11 Thread Alex B
Hi Drew, Could you post where you found the example using script{} block? I'm looking into building Docker images in ephemeral jenkins agents but having difficulty finding proper documentation for the syntax. -Alex On Thursday, June 1, 2017 at 1:23:11 AM UTC-5, drew@computecanada.ca wrote

Re: Building docker images with declarative pipeline

2017-05-31 Thread drew . leske
Hello Andrew and Thomas, I ran in this exact problem and used a script{} block, but I am wondering if there are updates to this issue. All of the documentation/examples I have seen use scripted syntax, but sometimes the documentation is behind the code. :) Cheers, Drew. On Tuesday, February

Re: Building docker images with declarative pipeline

2017-04-26 Thread Max Schindler
I would also be very interested in this. @Thomas: How are you proceeding with your topic? Maybe we can share our experience and help each other on this topic? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

Re: Building docker images with declarative pipeline

2017-02-14 Thread Thomas Fjellstrom
That would explain the complete lack of examples. I'm kindof surprised there wasnt some kind of mapping from plugin dsl to the new declarative syntax, to at least allow some use of the existing apis. The script blocks are good enough for now however. Thanks :) On Tuesday, February 14, 2017 at

Re: Building docker images with declarative pipeline

2017-02-14 Thread Andrew Bayer
Right now, we don't have a great answer for this other than to use Scripted Pipeline docker.build(...) within a script { } block - we don't allow "foo.bar()" or "foo = bar()" syntax in steps blocks in Declarative unless they're within a script block. Anything within a script block doesn't go throug

Building docker images with declarative pipeline

2017-02-14 Thread Thomas Fjellstrom
Hi, I'm brand new to jenkins, and have been reading a lot about the pipeline plugin. I think I have a basic grasp of it, but I haven't been able to figure out the proper syntax to build docker images in a pipeline stage. I don't want to run the steps IN a docker container, but rather build con