Hello Peter,

There is a lot of documentation at 
https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#docker-workflow-sect-build

You can use docker.build(...).inside{...} and 
docker.image("my-image").inside {...}

The sample below should do what you want.

node {
  git '…' // checks out Dockerfile & Makefile
  def myEnv = docker.build 'my-environment:snapshot'
  myEnv.inside {
    sh 'make test'
  }
}

Cyrille

On Friday, February 24, 2017 at 7:59:10 AM UTC+1, [email protected] wrote:
>
> I might just be missing something here.. But it seems like the docker 
> pipeline stuff is pretty busted.
>
> docker.build does *not* seem to return a docker image, even if the build 
> was successful. Nor does docker.image("image id") return a usable image 
> object. I'm rewriting these two functions in a shared groovy library with 
> sh calls rn. Am I crazy? Are other people seeing this? What am I doing 
> wrong?
>
> Thanks,
> -Peter
>

-- 
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/03fdb6ca-80a1-471d-a205-6eb807d832e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to