docker: poorly formatted environment:variable in travis (TRAVIS_COMMIT_MESSAGE)
See original GitHub issue- Version: 19.49.2
- Target: Windows and Linux using Docker.
While building for windows and linux using docker on trusty environment in travis, i am getting this error:
docker: poorly formatted environment: variable 'Refactored Settings system by moving it from dexie to JSON. Results in less complexity and efficiency as listeners are removed.' has white spaces.
I have used the travis config as provided in the docs sample project. The builds were running fine with the same config before. Between the last successful build and the current build, the .travis.yml file has not been touched at all.
The mac builds are working perfectly, so I assume the error is due to some config issue.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Environment Variables - Travis CI Docs
Public variables defined in .travis.yml are tied to a certain commit. Changing them requires a new commit, restarting an old build uses the...
Read more >docker: poorly formatted environment:variable in travis ...
While building for windows and linux using docker on trusty environment in travis, i am getting this error: docker: poorly formatted environment ......
Read more >Docker Engine release notes
Environment variables DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE and ... Add Travis CI configuration to validate DCO and gofmt requirements ...
Read more >Working with Environment Variables in Node.js[Draft] @ https ...
Tutorial for how to use environment variables in Node.js. ... give a quick insight about the project and what technologies/services/libraries are used. Bad...
Read more >docker_container - manage docker containers
Parameter Choices/Defaults Comments
blkio_weight Default: None Block IO (relative weight), between 10 and 1000.
capabilities Default: None List of capabilities to add to the container.
cpu_period...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@xsokaris I found another way here https://github.com/moby/moby/issues/12997#issuecomment-307665540
Here’s my full script:
Istead of passing vars with --env-file, it creates a list of
-e VAR1 -e VAR2
, and docker will be able to find the value of each itself. I also fixed the regex so it only takes vars starting by, and not only containing “DEBUG”, “NODE_” etc.Eventually you’ll have to add your environment variable pattern if it is not already matched by the regular expression.
(EDIT: See my cleaner suggestion two messages below, this one only removes all variable)
\r
wasn’t enough on my side, I had to exclude\n
tooHere’s the full line:
I’m not sure if that’s a good workaround though, but that did the trick for me.