Comments (5)
Unfortunately there is no interpolation or shell expansion that would expand that glob. We are at the mercy of whatever glob expansion shellcheck
or that docker image provides.
from docker-buildkite-plugin.
I'm not sure I understand: bash does expand that **/*.sh
glob for me. Are you saying that the plugin doesn't have a way to do that? If so, I'm looking for the plugin to support an option to expand globs, for images where's there's no other option, e.g. AFAICT, that image doesn't even contain a shell so the only way to expand globs is to do it externally. It's true that I could do it without using this plugin, but doing it declaratively is much nicer.
Hypothetically, the plugin could have an option expand_command_globs: true
that passes all the command
values through some expand_glob
function to go from **/*.sh
to, say, foo/bar.sh foo/baz/qux.sh
.
from docker-buildkite-plugin.
I see your conundrum there. Have you checked out https://github.com/buildkite-plugins/shellcheck-buildkite-plugin @huonw? Perhaps we should choose a different example for the readme here.
Out of interest… how did you end here at this plugin, instead the spellcheck one? Perhaps that's something we should look at.
from docker-buildkite-plugin.
Have you checked out https://github.com/buildkite-plugins/shellcheck-buildkite-plugin @huonw?
Thanks! That solves my specific issue in the best way!
Out of interesting… how did you end here at this plugin, instead the spellcheck one? Perhaps that's something we should look at.
We're using the docker plugin for our other steps (with custom docker images, so no more specific plugin for them), and I didn't even think to look for a different plugin.
from docker-buildkite-plugin.
Thanks @huonw! Good to hear. We'll find a better readme example…
from docker-buildkite-plugin.
Related Issues (20)
- input from block steps not passed in env HOT 1
- Can't interpolate ENV vars in mount path HOT 3
- Docker on Docker support HOT 1
- Exit codes > 1 are not correctly propagated HOT 2
- Dependency Dashboard
- GPU parameters not passing in Docker Run {--gpus 1} HOT 3
- Allow setting config globally, instead of per step HOT 1
- Limitation with an array of commands at the step level
- Handling of parameters when shell is false HOT 4
- Changing the Docker Version from 20.10.9 to 20.10.22 HOT 1
- `.ssh/known_hosts` mounted in wrong location when both `mount-ssh-agent` and `user` are used HOT 3
- Documentation: expand-volume-vars expansion time HOT 2
- error pulling amazonlinux:latest HOT 6
- How to pass environment variable to command? HOT 2
- Support for other docker commands than docker run HOT 2
- Windows: docker: Error response from daemon: invalid volume specification HOT 1
- add `expand-workdir-vars` option HOT 2
- Next major version should support the 99% case HOT 1
- `mount-buildkite-agent` should mount `BUILDKITE_AGENT_JOB_API_SOCKET`
- Plugin doesn't correctly bubble up Docker Hub Rate Limiting Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-buildkite-plugin.