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

Inability to install requested NodeJS version does not break the build #192

Open
roblillack opened this issue Aug 31, 2023 · 1 comment
Open
Labels
question Further information is requested

Comments

@roblillack
Copy link

Orb version:

circleci/node@5.1.0

What happened:

Both the "Install Node.js" and "Activate installed node version" steps are marked as successful—even though both of them failed.

image

Workflow: https://app.circleci.com/pipelines/github/vizzlo/web/20167/workflows/add62e32-3990-4089-bf53-857b132fc7bd/jobs/95940

Expected behavior:

Break the build, if the requested Node version cannot be installed for whatever reason

@roblillack roblillack added the bug Something isn't working label Aug 31, 2023
@marboledacci
Copy link
Contributor

Hi @roblillack I noticed you are using windows with bash here, by default unix executors add the -eo pipefail to the shell, so this is granted. For windows, you have to manually add this when setting the shell.
The correct way to get the behavior you want would be:

    machine:
      image: 'windows-server-2022-gui:current'
      resource_class: windows.medium
      shell: bash.exe -eo pipefail

If you are using the windows orb, it would be the same, just add -eo pipefail after bash.exe.

@marboledacci marboledacci added question Further information is requested and removed bug Something isn't working labels Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants