Problem:
When importing the circleci/path-filtering newer than 1.1.0, the orb fails to import with the following error:
[#/jobs/filter] 0 subschemas matched instead of one
1. [#/jobs/filter] only 1 subschema matches out of 2
| 1. [#/jobs/filter/circleci_ip_ranges] expected type: Boolean, found: String
| | SCHEMA:
| | type: boolean
| | INPUT:
| | << parameters.circleci_ip_ranges >>
2. [#/jobs/filter] expected type: String, found: Mapping
| Job may be a string reference to another job
3. [#/jobs/filter] required key [type] not found
This can be caused by an orb using syntax that is not supported on your server version.
The issue is caused by the introduction of the circleci_ip_ranges parameter to add support for the IP ranges feature which does not exist in CircleCI server
Solutions:
-
Solution 1
- Continue to install and use version 1.1.0 or prior as these versions do not feature the circleci_ip_ranges parameter and will import cleanly.
- Continue to install and use version 1.1.0 or prior as these versions do not feature the circleci_ip_ranges parameter and will import cleanly.
-
Solution 2
- Upgrade to CircleCI server version 4.8.0 or newer once released, as this version will include a fix that allows the import of this module.
Outcome:
- circleci/path-filtering Orb <= 1.1.0 will import cleanly into CircleCI Server versions earlier than 4.8
- CircleCI server >= 4.8 will allow for importing of the circleci/path-filtering Orb >= 1.1.0 up to and including 1.3.0 and later versions.
Additional Resources:
- Support article: Python 3.8 is not supported on the path-filtering orb
Comments
Article is closed for comments.