-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add build information push error handling #187
Conversation
Release-As: 3.4.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, just a small request to make the test clearer on what error we're expecting to get back.
await new BuildInformationRepository(client, space.Name).push(buildInformation); | ||
await new BuildInformationRepository(client, space.Name).push(buildInformation); | ||
} catch (error) { | ||
expect(error).toBeDefined(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add a check for the error message returned (similar to what we do in the package repository)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, good job!
There was no error in the build logs when a user was trying to push build info from ADO to Octopus which failed as they did not have the correct permissions.
This PR includes code to throw an error when the build information push fails.
The following error will be thrown when the user does not have the correct permissions: