Comments (9)
Should this be reopened now that 2.1 is out of preview? Will running 2.1 config jobs locally be supported in the future?
from circleci-cli.
Hello @brianmhunt,
Thanks for your reply.
I was able to process your config locally, after removing the funky character around line 43.
Could you try running the build locally after processing the config?
i.e.
$ circleci config process .circleci/config.yml > process.yml
# Run the build locally
$ circleci local execute -c process.yml --job deploy-master
This got pretty far for me, at least until make install
failed.
Please let me know if you have any other trouble using the CLI! 🙇
from circleci-cli.
$ circleci config process .circleci/config.yml > process.yml
# Run the build locally
$ circleci local execute -c process.yml --job deploy-master
This should be the docs :-)
from circleci-cli.
Thanks @zzak! I got it all sorted! Lots of tinkering, but nothing out of the ordinary for a preview release. :)
from circleci-cli.
Hello @brianmhunt,
Thanks for your report!
The circleci switch
command is for people with CLI verison 0.1.0
and less who wish to upgrade seamlessly to this CLI.
Could you send me your whole config, so that I can test it myself? Otherwise, our support staff would be happy to help assist with your config.
You've also found a doc bug! We renamed this command to circleci config process
but missed some of the docs, sorry about that! I will fix it right away.
from circleci-cli.
I should mention that circleci config expand
just prints the help, though it's mentioned in the config-preview-sdk/README.md:
Local builds do not support 2.1 configuration. There is a work-around, however: You can use the new circleci config expand command (requires upgrading your CLI to the new version) to process your configuration then save the result locally in your config.yml file and run it as a local build.
from circleci-cli.
@brianmhunt Ahh, regarding your original problem, I re-read this and understand now!
So we don't support 2.1+ config syntax for local builds.
You can use circleci config process
to pre-process your config into a version that local builds can run (see circleci help config process
for more information).
This command should warn if your config version is unsupported as of #76.
from circleci-cli.
Hi @zzak. Thanks for the great follow-up.
There've been a few errors that I diagnosed (once I found the Workflows panel), that now seem to be (or should shortly be) sorted.
Cheers
from circleci-cli.
+1 For @iancrowther's clarification: the command
circleci config process .circleci/config.yml
will just print the 'local-compatible' config.yml
to the standard output; it needs to be redirected to a file that you can specify as the --config
argument of circleci local execute
. (I noticed in particular that version 2.1
was changed to version 2
).
from circleci-cli.
Related Issues (20)
- Change `.circleci` home directory location with an Environment variable HOT 3
- Allow configuring http client timeout HOT 2
- [Feature Request] Add number of Active tasks in "runner instance list" command
- Wrong version of circleci inside local execution env HOT 2
- CircleCI Orb Init Error Misleading HOT 2
- Unable to start job with private images using `circleci local execute`
- docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/3966974312_circleci_config.yml. HOT 1
- IN1-GOLANG-GITHUBCOMCLOUDFLARECIRCLPKEKYBERINTERNALCOMMON-6150686 - github.com/cloudflare/circl
- `circleci config process` removes jobs from workflows with `only`-branch filters HOT 3
- Set "maintainer" label for Docker image HOT 2
- Json unmarshall error HOT 2
- Error: Unable to validate config HOT 4
- Clarify `orb validate` and `config validate` scope of validation HOT 1
- Infinite install bug HOT 2
- Provide mac arm64 release asset
- unable to execute local job on mac m1 pro HOT 2
- invalid character 'I' looking for beginning of value HOT 13
- ` local execute build` command fails when sidecar is present and using the latest docker version
- circleci config pack command is not working with latest version (v0.1.28363) HOT 2
- Orb validation fails HOT 6
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 circleci-cli.