question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't define resource_class and branches

See original GitHub issue

Hey,

According to the official docs we should be able to define the resource_class and branches keys within a job. But when trying to do it using this orb I get the following error:

# Error calling workflow: 'build'
# Error calling job: 'cypress/run'
# Unexpected argument(s): resource_class, only
# 
# -------
# Warning: This configuration was auto-generated to show you the message above.
# Don't rerun this job. Rerunning will have no effect.
false

Here is the yml file:

version: 2.1
orbs:
  cypress: cypress-io/cypress@1
workflows:
  build:
    jobs:
      - cypress/run:
          command: npm run e2e:ci
          working_directory: client
          resource_class: xlarge
          branches:
            only:
              - feature/cypress

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
OndeVaicommented, Jul 7, 2022

Why has this been closed? It still does not work…

0reactions
jennifer-shehanecommented, Apr 22, 2020

Closing as this is not implemented as possible via CircleCI orb currently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 branches for try with resources - jacoco coverage possible?
All branches can be reached, the try-with-resources is fairly simple compiler sugar (at least compared to switch-on-string ) - if they cannot be...
Read more >
Define YAML resources for Azure Pipelines - Microsoft Learn
Learn how to define YAML resources that can be consumed anywhere in your pipelines.
Read more >
When C# script extends Resource class, the resource doesn't ...
I have tackled this issue and this problem is harder than I think. Currently, there exists circular dependency between resourcePreview and ...
Read more >
Configuring CircleCI
A map of environment variable names and values. A map defining rules to allow/block execution of specific branches for a single job that...
Read more >
Extending with Shared Libraries - Jenkins
Defining custom steps​​ Global variables defined in Shared Libraries must be named with all lowercase or "camelCased" in order to be loaded properly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found