How to run Jenkins pipeline jobs using JFrog DSL from within Docker containers?
def buildenv = docker.image('container')
def server = Artifactory.server('OLP Staging Artifactory')
def buildInfo = Artifactory.newBuildInfo()
buildInfo.env.capture = true
will fail with: Could not read initialization script '/tmp/init-artifactory6638392993045452201gradle' as it does not exist.
same code running on the plain slave will pass thru correctly. Docker containers are widely used in CD flows running on top of stateless nodes in the cloud.