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

fix(artifact/bitbucket): Bitbucket Use Default Artifact #7523

Merged
merged 6 commits into from
Oct 16, 2019

Conversation

jorgebee65
Copy link
Contributor

This change allow to specify explicitly the attribute name for a Bitbucket Artifact instead of trying to parse it from the reference. This decision is due the reference patterns for bitbucket vary widely between versions and would be difficult to maintain them per version.
We're just adding a name field so users can set that themselves. This is a backwards compatible change because existing artifacts will already have the name field populated.

@spinnakerbot
Copy link
Contributor

The following commits need their title changed:

  • 775d580: remove regex on event onChange for Object Path field

Please format your commit title into the form:

<type>(<scope>): <subject>, e.g. fix(kubernetes): address NPE in status check

This allows us to easily generate changelogs & determine semantic version numbers when cutting releases. You can read more about commit conventions here.

@ethanfrogers
Copy link
Contributor

@spinnakerbot assign-issue maggieneterval

@maggieneterval
Copy link
Contributor

Hey @jorgebee65, thanks so much for the PR!

I don't know anything about bitbucket so just want to make sure I understand the workflows here: it looks like previously, users specified a reference, and we used regex to derive the name. Now, users can specify both a reference (which is no longer parsed using regex), and an explicit name. Do you now need to specify both the reference and the name? Or are there situations when users only need to specify one? If users now only need to specify one or the other, perhaps we can make that clear in the tooltip text?

@ethanfrogers
Copy link
Contributor

@maggieneterval @jorgebee65 is OOO this afternoon so I'll answer for him.

That's a good question. I'm not entirely sure if name is required anywhere other than the current (soon to be previous) implementation for Kustomize. Without tracking down everywhere artifacts are used it's probably safe to assume that it's required. So, users will need to specify both, like how the first implementation of Github artifacts were defined. Before the regex was introduced you had to define both manually so this is kind of going back to the original implementation IIRC.

@jorgebee65
Copy link
Contributor Author

Hi @maggieneterval as @ethanfrogers mentioned now users will need to specify both fields because the regex was removed due the bitbucket API vary widely between versions.

@ethanfrogers ethanfrogers merged commit c8c06e4 into spinnaker:master Oct 16, 2019
@ethanfrogers ethanfrogers deleted the bitbucket-artifact-fix branch October 16, 2019 12:17
@ethanfrogers
Copy link
Contributor

@spinnakerbot cherry-pick 1.16

spinnakerbot pushed a commit that referenced this pull request Oct 16, 2019
* fix(artifact/bitbucket): Bitbucket Use Default Artifact edit Object path field

* remove regex on event onChange for Object Path field
@spinnakerbot
Copy link
Contributor

Cherry pick successful: #7535

louisjimenez pushed a commit that referenced this pull request Oct 16, 2019
* fix(artifact/bitbucket): Bitbucket Use Default Artifact edit Object path field

* remove regex on event onChange for Object Path field
caseyhebebrand added a commit to caseyhebebrand/deck that referenced this pull request Oct 16, 2019
c8c06e4 fix(artifact/bitbucket): Bitbucket Use Default Artifact (spinnaker#7523)
ed7c445 feat(ui): Show health check url beside target group (spinnaker#7520)
caseyhebebrand added a commit to caseyhebebrand/deck that referenced this pull request Oct 16, 2019
c8c06e4 fix(artifact/bitbucket): Bitbucket Use Default Artifact (spinnaker#7523)
ed7c445 feat(ui): Show health check url beside target group (spinnaker#7520)
christopherthielen pushed a commit that referenced this pull request Oct 16, 2019
c8c06e4 fix(artifact/bitbucket): Bitbucket Use Default Artifact (#7523)
ed7c445 feat(ui): Show health check url beside target group (#7520)
yunzhangit pushed a commit to yunzhangit/deck that referenced this pull request Mar 28, 2021
* fix(artifact/bitbucket): Bitbucket Use Default Artifact edit Object path field

* remove regex on event onChange for Object Path field
yunzhangit pushed a commit to yunzhangit/deck that referenced this pull request Mar 28, 2021
c8c06e4 fix(artifact/bitbucket): Bitbucket Use Default Artifact (spinnaker#7523)
ed7c445 feat(ui): Show health check url beside target group (spinnaker#7520)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants