Hello. I'm trying to mount specific directory to a stage-only agent that will use docker in a declarative pipeline. It looks like this:
> agent { > docker { > image "myimage:latest" > args "-v ${WORKSPACE}/out:/var/www/api/out" > } > } > However, this results in *No such property: WORKSPACE*. When I'm using *env.WORKSPACE* it is interpolated to *null* (also resulting in error). Does that mean that interpolation is only available for steps, or is there another trick (without resorting to scripted pipeline) to interpolate string properly in this case? -- 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/fd047f0f-2aba-4700-a7b8-caa20658e681%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.