semver
semver copied to clipboard
Feature request: Suppress stderr
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
Hi @aderito7, I'm not sure to get it, semver writes to stderr
even if it succeeds?
@edbzn , it would appear so. At least the pipeline fails due to this
@aderito7 can you give the output?
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.