for debugging,
why not put some more echo/ls commands to check if the file you are looking
is there or not from the container.

The documentation says:
*Takes an image ID or symbolic name which must already have been pulled
locally and starts a container based on that image. Runs all
nested sh steps inside that container. The workspace is mounted read-write
into the container. *

Did you checked if the workspace have the file?

A really brut way, if you want to really shell into the container, might be
to docker run the same image, in the workspace mnaually and try to trigger
the steps manually. Else, use try and catch to not keep the container
enaged even if the main execution fails.

i haven't used these DSL, so these are some of my thoughts

HTH,



On Wed, Feb 7, 2018 at 12:44 PM, pisymbol <[email protected]> wrote:

>
>
> On Monday, February 5, 2018 at 3:16:04 PM UTC-5, pisymbol wrote:
>>
>> withDockerContainer(image: "centos:7", args: "--privileged") {
>>             stage ('Negotiate World Peace') {}
>>             stage ("Cure Cancer") {}
>>
>>
> Anyone do this? I mean how does one debug build bugs in a docker container
> other than trial and error?
>
> -aps
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/a851cbd9-364c-4ce8-bd22-a972debce310%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/a851cbd9-364c-4ce8-bd22-a972debce310%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4i5mphMvg8YwT3Kqu%2Be-n9KPN%3D5CxDshooyLooeOS-Fug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to