Any idea on whats making the lint step always pass regardless of any of the commands exiting with a non-zero exit code?
Also as a side note, trying to view .onedev-buildspec.yml file in a project that just contains an import from another project fails with an HTTP 500
Robin Shen commented 2 years ago
Please wrap your command with a shell script, and run the shell script on your terminal to see if it exits with non-zero code.
Or you may create example projects here (code.onedev.io) which I can run to reproduce the issue.
Robin Shen commented 2 years ago
Also for 500 error when view .onedev-buildspec.yml, I tried but it works at my side. Please show me detailed reproducing steps.
John commented 2 years ago
Thanks for the sanity check, looks like the {} \; part of the find command was throwing off the exit code, swapping to {} \+ resolved my issue. I'll create a separate issue for the HTTP 500 code since its not directly related. Thanks!
Relevant step in YAML:
Imported into another project via Import:
Lint step being run:
But running the lint command on the command line show the exit code is non-zero:
Any idea on whats making the lint step always pass regardless of any of the commands exiting with a non-zero exit code?
Also as a side note, trying to view
.onedev-buildspec.yml
file in a project that just contains an import from another project fails with an HTTP 500