Why are contexts not applied?

If a build doesn't apply contexts even if you specified the `context` key in your workflow, you can use the CircleCI API v1.1 "Trigger a new Job with a Branch" endpoint to trigger builds.

If the `workflows` section in your configuration shows up as the one below when you view it in the CircleCI UI, you hit this case.

  version: 2
    - build: {}

Context is a part of workflow feature, and this is why the context isn't applied to the job.

So, you can use the following API endpoints to trigger builds as workflow or pipeline, which will allow you to use the `context` feature:


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



Article is closed for comments.