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

Feature request: Suppress stderr #416

Open
aderito7 opened this issue Dec 22, 2021 · 5 comments
Open

Feature request: Suppress stderr #416

aderito7 opened this issue Dec 22, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@aderito7
Copy link

Good day, team

Currently I'm running versioning of script within my nx monorepo against Azure Pipelines.
nx version my-project is being run in conjunction with other scripts such as npm install, etc, which should they fail for some reason I wish for the task to fail as well.
At the moment jscutlery/semver is writing outputs to stderr, which I was hoping to request a feature to suppress (if not redirect to stdlog).

- task: Bash@3
    inputs:
      targetType: 'inline'
      script: bash myscript.sh
      failOnStderr: true
@edbzn
Copy link
Member

edbzn commented Dec 29, 2021

Hi @aderito7, I'm not sure to get it, semver writes to stderr even if it succeeds?

@aderito7
Copy link
Author

@edbzn , it would appear so. At least the pipeline fails due to this

@edbzn
Copy link
Member

edbzn commented Jan 14, 2022

@aderito7 can you give the output?

@aderito7
Copy link
Author

7c96096268498e5cd599c85cbb1b14b89f9206844f0911ede4a98342716385ef

@aderito7
Copy link
Author

aderito7 commented Feb 9, 2022

Bump on this one.
Same issue is being experienced on gitlab pipeline
This has required adding:

version:
  allow_failure: true
  script:
  - nx affected:version

ERROR: Job failed: command terminated with exit code 1

Unfortunately allow_failure suppresses all errors.

@edbzn edbzn added the bug Something isn't working label Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants