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

Document how to get exit code in build scripts #265

Open
jbergens opened this issue Oct 17, 2022 · 2 comments
Open

Document how to get exit code in build scripts #265

jbergens opened this issue Oct 17, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation triage Work out what the issue is

Comments

@jbergens
Copy link

Is your feature request related to a problem? Please describe.
Our build script on Azure Devops do not stop even if Grate has a problem. I think Grate returns -1 or 1 as an exit code but it looks like "dotnet run grate" does not forward this exit code to the Powershell script that Devops is using.

Describe the solution you'd like
Please add some documentation of how to make this work in the most common build system. Azure Devops for me but I assume Github actions would also be a good idea. If the solution is to not use "dotnet run" then there should be documentation showing to to do some other method and if possible add some explanation why this is useful.

Describe alternatives you've considered
Just building a Grate binary and call that directly.

@jswright91
Copy link

In my ADO instance, I've got the grate binaries being installed via dotnet tools, and then running the grate process through the grate command via dotnet.

'grate -c'... etc.

I'm not performing my ADO tasks during the build pipelines though, instead I am handling sql migrations in the release pipelines.

@erikbra
Copy link
Owner

erikbra commented Oct 27, 2022

@jbergens - could you please try if this pipeline works as expected for you?

https://github.com/erikbra/grate/blob/main/examples/AzureDevops/azure-pipelines.yml

@erikbra erikbra added documentation Improvements or additions to documentation triage Work out what the issue is labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation triage Work out what the issue is
Projects
None yet
Development

No branches or pull requests

3 participants