-
Notifications
You must be signed in to change notification settings - Fork 249
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 rbc command to accept project with no spec #2884
Conversation
lifecycle/cli.go
Outdated
@@ -222,7 +222,7 @@ func getReleaseBundleCreationSpec(c *cli.Context) (*spec.SpecFiles, error) { | |||
buildNumber := getStringFlagOrEnv(c, cliutils.BuildNumber, coreutils.BuildNumber) | |||
|
|||
if buildName != "" && buildNumber != "" { | |||
return speccore.CreateSpecFromBuildNameAndNumber(buildName, buildNumber) | |||
return speccore.CreateSpecFromBuildNameAndNumber(buildName, buildNumber, cliutils.GetProject(c)) |
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.
Great!
Let's just add e2e tests to verify the release bundle is being created at the right project
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.
added new test TestCreateBundleWithoutSpecAndWithProject
dev
branch.go vet ./...
.go fmt ./...
.Depends On
jfrog/jfrog-cli-core#1356
Fixes #2874