circleci config validate fails when using pipeline values

Overview

Currently, not all pipeline values are supported when using the circleci config validate command when using the CircleCI Local CLI. This means that the circleci config validate command will fail erroneously. Currently, the following pipeline values are not supported: 

  • pipeline.trigger_parameters.github_app.user_id
  • pipeline.trigger_parameters.github_app.user_name
  • pipeline.trigger_parameters.github_app.user_username
  • pipeline.git.branch.is_default
  • pipeline.trigger_parameters.circleci.event_time
  • pipeline.trigger_parameters.github_app.ref
  • pipeline.trigger_parameters.github_app.checkout_sha
  • pipeline.trigger_parameters.github_app.user_name
  • pipeline.trigger_parameters.github_app.user_username
  • pipeline.trigger_parameters.github_app.user_avatar
  • pipeline.trigger_parameters.github_app.repo_name
  • pipeline.trigger_parameters.github_app.repo_url
  • pipeline.trigger_parameters.github_app.web_url
  • pipeline.trigger_parameters.gitlab.commit_sha
  • pipeline.trigger_parameters.github_app.commit_sha
  • pipeline.trigger_parameters.github_app.commit_title
  •  pipeline.trigger_parameters.github_app.commit_message
  • pipeline.trigger_parameters.github_app.commit_timestamp
  • pipeline.trigger_parameters.github_app.commit_author_name
  • pipeline.trigger_parameters.github_app.total_commits_count
  • pipeline.trigger_parameters.github_app.branch
  • pipeline.trigger_parameters.gitlab.default_branch
  • pipeline.trigger_parameters.gitlab.x_gitlab_event_id
  • pipeline.trigger_parameters.gitlab.is_fork_merge_request
  • pipeline.trigger_parameters.webhook.body

Workaround

If you are using the CircleCI Local CLI for validation as part of your pre-commit checks, you might consider adjusting your pre-commit checks to account for this known limitation, or alternatively, use the CircleCI API to trigger pipelines where these parameters are needed.
For more information on pipeline parameters, you can refer to the CircleCI documentation on Pipeline values and parameters and Pipeline variables.
For more details on how to trigger a workflow via CircleCI API v2, you can refer to this Support Article.

 

 

Was this article helpful?
0 out of 4 found this helpful

Comments

0 comments

Article is closed for comments.