Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config was parsed correctly but no tasks were found! #174

Closed
AlexWayfer opened this issue Nov 19, 2020 · 4 comments
Closed

Config was parsed correctly but no tasks were found! #174

AlexWayfer opened this issue Nov 19, 2020 · 4 comments
Assignees

Comments

@AlexWayfer
Copy link
Contributor

AlexWayfer/flame-cli#57

Probably because of cirruslabs/cirrus-ci-docs#689

@edigaryev
Copy link
Contributor

Please take a look at the CLI's version 0.19.0 that was just released, it should support .cirrus.yaml now.

@AlexWayfer
Copy link
Contributor Author

Sorry, but I can't confirm:

> sudo cirrus --version
cirrus version 0.20.1-unknown

> sudo cirrus run
2020/12/03 01:31:01 Config was parsed correctly but no tasks were found!
Error: run failed
2020/12/03 01:31:01 run failed

> ls -lah .cirrus.yaml
-rw-r--r-- 1 alex alex 3.1K Dec  3 01:28 .cirrus.yaml

@edigaryev
Copy link
Contributor

Sorry, but I can't confirm:

> sudo cirrus --version
cirrus version 0.20.1-unknown

> sudo cirrus run
2020/12/03 01:31:01 Config was parsed correctly but no tasks were found!
Error: run failed
2020/12/03 01:31:01 run failed

> ls -lah .cirrus.yaml
-rw-r--r-- 1 alex alex 3.1K Dec  3 01:28 .cirrus.yaml

Looks like you have some only_if conditions in your .cirrus.yaml that don't get evaluated to true. This results in parser skipping those tasks.

You can try supplying the missing environment variables to make this work:

cirrus run -e CIRRUS_BRANCH=master

@AlexWayfer
Copy link
Contributor Author

Sorry, but I can't confirm:

> sudo cirrus --version
cirrus version 0.20.1-unknown

> sudo cirrus run
2020/12/03 01:31:01 Config was parsed correctly but no tasks were found!
Error: run failed
2020/12/03 01:31:01 run failed

> ls -lah .cirrus.yaml
-rw-r--r-- 1 alex alex 3.1K Dec  3 01:28 .cirrus.yaml

Looks like you have some only_if conditions in your .cirrus.yaml that don't get evaluated to true. This results in parser skipping those tasks.

You can try supplying the missing environment variables to make this work:

cirrus run -e CIRRUS_BRANCH=master

OK, thank you! Sorry, forgot about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants