I’m using a build step with detach: true
and noticed my parameters are not being propagated to ENV. I verified this by printing out the ENV and comparing with detach: true and false. Using drone 0.8.
This is the expected behavior. Custom parameters are only passed to plugin steps. They are not passed to service steps or build steps. If a step is detached it is classified as a service, and not as a plugin.
If you want to pass custom parameters to a detached service, you can use the environment section:
pipeline:
foo:
image: bar
detach: true
environment:
- A=B
- C=D
Got it. Thanks.
This would be great to document at http://docs.drone.io/services/. Shall I start a PR?