From 18bec660ed65444727efff4a9ac641be7cb08240 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Wed, 31 Jul 2019 11:01:24 -0500 Subject: [PATCH] Expose entrypoint and shell for Docker plugin --- .../plugins/buildkite/BuildkitePipeline.groovy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/buildSrc/src/main/groovy/com/widen/plugins/buildkite/BuildkitePipeline.groovy b/buildSrc/src/main/groovy/com/widen/plugins/buildkite/BuildkitePipeline.groovy index 087115d..c707858 100644 --- a/buildSrc/src/main/groovy/com/widen/plugins/buildkite/BuildkitePipeline.groovy +++ b/buildSrc/src/main/groovy/com/widen/plugins/buildkite/BuildkitePipeline.groovy @@ -292,6 +292,20 @@ class BuildkitePipeline implements ConfigurableEnvironment { volume(source, target) } } + + /** + * Override the Docker container entrypoint. + */ + void entrypoint(String entrypoint) { + model.entrypoint = entrypoint + } + + /** + * Set the shell to use for the command. + */ + void shell(String... args) { + model.shell = args + } } /**